Tech »  Topic »  How OpenAI is scaling the PostgreSQL database to 800 million users

How OpenAI is scaling the PostgreSQL database to 800 million users


While vector databases still have many valid use cases, organizations including OpenAI are leaning on PostgreSQL to get things done.

In a blog post on Thursday, OpenAI disclosed how it is using the open-source PostgreSQL database.

OpenAI runs ChatGPT and its API platform for 800 million users on a single-primary PostgreSQL instance — not a distributed database, not a sharded cluster. One Azure PostgreSQL Flexible Server handles all writes. Nearly 50 read replicas spread across multiple regions handle reads. The system processes millions of queries per second while maintaining low double-digit millisecond p99 latency and five-nines availability.

The setup challenges conventional scaling wisdom and offers enterprise architects insight into what actually works at massive scale.

The lesson here isn’t to copy OpenAI’s stack. It’s that architectural decisions should be driven by workload patterns and operational constraints — not by scale panic or fashionable infrastructure choices. OpenAI’s PostgreSQL setup ...


Copyright of this story solely belongs to venturebeat . To see the full text click HERE