talira

RethinkDB

The open source database for the realtime web

open sourceApache-2.0self-hostablefree

RethinkDB is an open source, distributed NoSQL database that stores schemaless JSON documents and pushes changes to your application in realtime. Instead of polling, an app subscribes to a query with a changefeed and the database streams updated results as the data changes, which suits collaborative web and mobile apps, multiplayer games, live dashboards and realtime marketplaces. Its query language, ReQL, is embedded in the host language and supports secondary indexes, nested fields, table joins, map-reduce, geospatial queries and asynchronous connections. Clusters shard and replicate tables, fail over automatically and come with a web administration UI, user accounts and permissions. Official drivers cover JavaScript, Python, Ruby and Java, with community drivers for many other languages. It runs on Linux, macOS and Windows or in the official Docker image, and is an Apache-2.0 licensed project of the Linux Foundation, kept alive by community maintainers.

Problems it solves

  • push database changes to my web app in realtime without polling
  • a JSON document database with live query subscriptions
  • build a collaborative or multiplayer app that syncs state between users
  • a distributed NoSQL database with sharding, replication and automatic failover
  • an open source alternative to Firebase realtime queries that I can self-host

Features

  • changefeeds that push query results to apps as data changes
  • ReQL query language embedded in JavaScript, Python, Ruby and Java
  • secondary indexes, nested fields, table joins and map-reduce
  • geospatial queries, dates and binary objects
  • sharding, replication and automatic failover
  • web administration UI
  • user accounts and permissions
  • backup and restore tools
  • official drivers for JavaScript, Python, Ruby and Java plus community drivers

Limitations

  • The last release, 2.4.4, came out in December 2023; work since then is on the main branch only.1
  • macOS packages (DMG) are built only for Intel x86_64; on Apple silicon it has to be built from source.2
  • The Windows port is newer and less tuned than the Linux and macOS versions.3

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what RethinkDB does.

  1. Couchbase Distributed JSON document database with a built-in cache, SQL++ queries, search and mobile sync
  2. Cloud Firestore A flexible, scalable NoSQL cloud database for mobile, web and server development
  3. SurrealDB A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data
  4. RavenDB A NoSQL document database with ACID transactions
  5. Apache CouchDB Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reliability
  6. PouchDB The JavaScript database that syncs

Compare RethinkDB with the top 3