O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

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

Database replication

Now that we have established why we are opting to use a relational database, let us move onto the next question: how can we ensure that our database doesn't become a single point of failure?

Let us first consider what are the consequences if a database fails:

  • We cannot write new data to the database
  • We cannot read from the database

Of the two consequences, the latter is more critical. Consider our blogging application, while being able to write new blog posts is important, the vast majority of the users on our site will be readers. This is the norm for most everyday user-facing applications. Hence, we should try to ensure that we are always able to read data from the database even if we are no longer able to write new ...

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