Join us

Scaling PostgreSQL to power 800 million ChatGPT users

Scaling PostgreSQL to power 800 million ChatGPT users

OpenAI pushed PostgreSQL to handle millions of QPS across 800M users. How? Nearly 50 read replicas, heavy read offloading, and serious trimming on write pressure.

Writes? Sent elsewhere. Sharded systems like CosmosDB, lazy writes, and app-level tweaks helped sidestep PostgreSQL’s MVCC write amplification mess.

Cache misses don’t get a free pass either - a custom cache locking setup rate-limits bursty traffic before it hits the primary.

Still not enough? They’re testing WAL relay replication. Relay nodes forward the write-ahead log, offloading replicas and buying time beyond normal scaling ceilings.

The bigger picture: With the right hacks - sharding, caching, WAL relays - PostgreSQL can play at global scale.


Let's keep in touch!

Stay updated with my latest posts and news. I share insights, updates, and exclusive content.

Unsubscribe anytime. By subscribing, you share your email with @kaptain and accept our Terms & Privacy.

Give a Pawfive to this post!


Only registered users can post comments. Please, login or signup.

Start writing about what excites you in tech — connect with developers, grow your voice, and get rewarded.

Join other developers and claim your FAUN.dev() account now!

Avatar

Kaptain #Kubernetes

FAUN.dev()

@kaptain
Kubernetes Weekly Newsletter, Kaptain. Curated Kubernetes news, tutorials, tools and more!
Developer Influence
1

Influence

1

Total Hits

107

Posts