All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

How OpenAI Scaled PostgreSQL to Support 800 Million ChatGPT Users

By

mustaphah

4mo ago· 12 min readenInsight

Summary

OpenAI shares technical insights on how they scaled PostgreSQL to handle massive growth for ChatGPT and their API, supporting over 800 million users. The article details their infrastructure evolution as PostgreSQL load grew 10x in a year, revealing that PostgreSQL can handle much larger read-heavy workloads than previously thought possible. Key scaling strategies include using read replicas, caching, rate limiting, and workload isolation to achieve millions of queries per second.

Key quotes

· 4 pulled
For years, PostgreSQL has been one of the most critical, under-the-hood data systems powering core products like ChatGPT and OpenAI's API.
Our efforts to advance our production infrastructure to sustain this growth revealed a new insight: PostgreSQL can be scaled to reliably support much larger read-heavy workloads than many previously thought possible.
Over the past year, our PostgreSQL load has grown by more than 10x, and it continues to rise quickly.
The system (initially created by a team of scientists) has proven remarkably scalable with the right infrastructure approach.
Snippet from the RSS feed
An inside look at how OpenAI scaled PostgreSQL to millions of queries per second using replicas, caching, rate limiting, and workload isolation.

You might also wanna read