What are the advantages of asynchronous replication?
The advantages of asynchronous replication in Redis are mostly about performance, simplicity, and scalability.
1. High write speed
The master doesn't wait for a response from replicas, it confirms a write right after performing it. That minimizes latency and makes write operations as fast as possible.
2. Read scaling
Since replicas catch up with the master independently, they can be used for lots of reads with no load on the primary node. That lets the system serve a large number of clients and read requests.
3. A simple architecture
An asynchronous scheme requires no complex acknowledgment protocols or timeouts. It's easy to set up and works well "out of the box".
4. A stable master
Even if one of the replicas is unreachable or lagging, the master keeps running without interruption. Replication doesn't block the primary database.
5. Flexibility during failures
Replicas can connect and catch up with the master later, Redis sends the missing data on its own. That's convenient during temporary network drops or node restarts.
Summary: Asynchronous replication makes Redis fast, scalable, and resilient to temporary failures, at the cost of some reliability (the most recent writes can be lost if the master crashes).
Short Answer
Interview readyA concise answer to help you respond confidently on this topic during an interview.