In this article I will be guiding you on how to install RethinkDB on Ubuntu 20.04
RethinkDB is an open-source, scalable JSON database built from the ground up for the realtime web. It inverts the traditional database architecture by exposing an exciting new access model, instead of polling for changes, the developer can tell RethinkDB to continuously push updated query results to applications in realtime. RethinkDB’s realtime push architecture dramatically reduces the time and effort necessary to build scalable realtime apps. It is a great option when you need real time feeds to your data.
RethinkDB is very useful when your application needs real time feeds to your data. RethinkDB query-response database access model works well on the web because it maps directly to HTTPs response request.
RethinkDB works well in the following fields:
- Developing realtime analytic applications
- Working on multiplayer games
- Working with realtime money markets such as New York stock Exchange
- Working with connected devices
- Developing collaborative web and mobile applications.
In this guide I will be showing you how to install RethinkDB by compiling from the source.
1. Install RethinkDB dependencies
To first install RethinkDB we need to update our system and install the following dependencies
- libprotobuf-dev libcurl4-openssl-dev
- build-essential protobuf-compiler python
- libboost-all-dev libncursess5-dev
- libjemalloc-dev wget m4
$ sudo apt update $ sudo apt upgrade -y
When the update and upgrades are complete, you need to install the following dependencies so that it allows us to build RethinkDB effectively. Use the following command on your terminal.
$ sudo apt-get install build-essential protobuf-compiler python \ libprotobuf-dev libcurl4-openssl-dev \ libboost-all-dev libncurses5-dev \ libjemalloc-dev wget m4
After installation is complete then we need download RethinkDB from its repository. The effective way to do is to use wget command. Download and extract the tar into your system with the following command;
$ wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.1.tgz
Extract the downloaded file to your system with the following command;
$ tar xf rethinkdb-2.4.1.tgz
It is now time to build our server but first cd into RethinkDB repository
$ cd rethinkdb-2.4.1
Pass this command to run configuration files; followed by command make. make command is used to build and maintain groups of programs and files from the source code.
$ ./configure --allow-fetch $ make
This process will take long so wait for it to complete before running the installation command. When the process is complete you can then run the following command to install RethinkDB.
$ sudo make install
This will start the installation of RethinkDB into your system.
You have installed RethinkDB successfully by building from the source. Take time to understand the underlying architecture surrounding RethinkDB. For any queery dont hesitate to consult the documetation.