All Posts

1276 articles

backend5 min read

Read Replica Lag — Why Your Users See Stale Data After Saving

User saves their profile. Page reloads. Shows old data. They save again — same thing. The write went to the primary. The read came from the replica. The replica is 2 seconds behind. Read-after-write consistency is the hardest problem with read replicas.

Read →
Page 196 of 256