Master-slave configuration
Each of the solutions discussed previously have their own pros and cons. If a Redis container configured to save data to file fails, there are chances of losing the data; on the other hand, if it is configured to use AOF type persistence the new container might take more time to replay the logs. To build reliable and high performance web applications, the underlying sub-systems should also be available and performing as well. The ideal solution for promising round-the-clock availability is replication. Redis contains a built-in replication feature which is simple yet effective. Redis allows the master to save exact copies of itself as slaves. It uses asynchronous replication while copying data to slaves which increases ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access