system-design
Why OpenAI Refused to Shard Postgres at 800 Million Users
ChatGPT's metadata database runs on one PostgreSQL primary and about 50 read replicas. Here is the workload measurement that makes sharding the wrong answer, and the replica-tree, pooling, and write-offloading discipline that pays for it.