Sphere
Log in Join
☆ 13

Read replica lag makes the profile page show stale data

After a user updates their bio, the profile page still shows the old value because we read from a replica. Refreshing a few seconds later fixes it.

⚑ Report

3 replies

☆ 0
C Chloe ·2026-11-04#1

That is read-your-writes consistency. Route the user's own profile requests to the primary and keep the replica for public browsing.

⚑ Report
☆ 0
J Jordan ·2026-11-04#2

What about other users who just received an update notification?

⚑ Report
☆ 0
F Felix ·2026-11-04#3

They can tolerate a second of lag. Or include the updated value in the event payload so the UI shows it without querying at all.

⚑ Report
Log in to reply.