Getting started with rethinkdb
Remarks#
What is RethinkDB?
- Open-source database for building realtime web applications
- NoSQL database that stores schemaless JSON documents
- Distributed database that is easy to scale
- High availability database with automatic failover and robust fault tolerance
RethinkDB is the first open-source scalable database built for realtime applications. It exposes a new database access model — instead of polling for changes, the developer can tell the database to continuously push updated query results to applications in realtime. RethinkDB allows developers to build scalable realtime apps in a fraction of the time with less effort.
Versions#
Version | Release Date |
---|---|
2.3.5 | 2016-08-27 |
2.3.4 | 2016-06-03 |
2.3.3 | 2016-05-31 |
2.3.2 | 2016-05-05 |
2.3.1 | 2016-04-22 |
2.3.0 | 2016-04-05 |
Installation on OS X
Using Homebrew
Prerequisites: Make sure you’re on OS X 10.9 (Mavericks) or above, and have Homebrew installed.
Run the following in your terminal:
brew update && brew install rethinkdb
Compile from source
Building RethinkDB from source requires OS X 10.9 (Mavericks) or greater. Xcode is required to build from source.
Get the source code
Download and extract the archive:
wget https://download.rethinkdb.com/dist/rethinkdb-2.3.4.tgz
tar xf rethinkdb-2.3.4.tgz
Build RethinkDB
Kick off the build process:
cd rethinkdb-2.3
./configure --allow-fetch --fetch openssl
make
You will find the rethinkdb
binary in the build/release/
subfolder.
Installation on Ubuntu
Ubuntu binaries are available for both 32-bit and 64-bit architectures
source /etc/lsb-release && echo "deb https://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install rethinkdb
Installation on Windows
Downloading
Prerequisites: We provide native 64-bit binaries for Windows 7 and above. A 64-bit version of Windows is required.
Download the ZIP archive and unpack it in a directory of your choice.
The Windows port of RethinkDB is a recent addition and hasn’t received as much tuning as the Linux and OS X versions yet. Please report any performance issues on GitHub.
Running RethinkDB
The Windows version of RethinkDB, like the Linux/OS X versions, is executed from the command line. You’ll need to start the Windows command shell.
- Press
Win
+X
and click “Command Prompt”; or - Open the Start Menu, click “Run,” and type “cmd”
ENTER
Use the cd
command to go to the directory that you unpacked rethinkdb.exe
in.
C:\Users\Slava\>cd RethinkDB
C:\Users\Slava\RethinkDB\>
Then, you can start RethinkDB with its default options.
C:\Users\Slava\RethinkDB\>rethinkdb.exe
You can also use any of the command line options to control configuration (as well as specify a configuration file).
To start with a specific data directory:
rethinkdb.exe -d c:\RethinkDB\data\
To specify a server name and another cluster to join:
rethinkdb.exe -n jarvis -j cluster.example.com