O'Reilly logo

Mastering RethinkDB by Shahid Shaikh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing replication of tables in RethinkDB

We have a fully working cluster with us running two instances of RethinkDB. We can perform replication in our cluster to maintain high availability of data in case of failover. Replication, as the name suggests, means keeping the copy of a table in another instance to mainly handle failover scenarios. However, replication can also help you in scaling your system to improve performance and response time.

RethinkDB provides two ways to perform replication:

  • By using a web console
  • By using ReQL queries

You can use the tableCreate ReQL method and provide values for shards and replicaspershard keys to create your replication; we have covered ReQL queries in detail in Chapter 2RethinkDB Query Language. So, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required