Replicas for the feed
Statement
A social feed: 4000 requests/s, 90 % reads. A cache is off-limits in this product (data changes every second), so the only way to take reads off the database is read replicas. A replica serves reads only and must be linked to the primary; the app server splits reads evenly across live replicas. Writes go to the primary only. Evenings bring 1.3× the load.
Constraints
- p95 ≤ 300 ms, errors ≤ 0.1 %, budget $4500/month, ≤ 5 instances per node.