Vivold Consulting
Other

Scaling PostgreSQL to power 800 million ChatGPT users

OpenAI demonstrates extreme scale with PostgreSQL at the heart of ChatGPT's infrastructure

Key Insights

OpenAI scales PostgreSQL beyond conventional expectations to support ChatGPT's 800 million users with millions of queries per second using a single primary instance and ~50 read replicas. Through rigorous optimization, caching, workload isolation, and replica architecture, the system achieves performance and reliability at massive scale. This challenges assumptions about traditional databases in hyperscale AI systems. :contentReference[oaicite:5]{index=5}

Stay Updated

Get the latest insights delivered to your inbox

How OpenAI stretched PostgreSQL to hyperscale

OpenAI's engineering post breaks down its decision to rely on a single PostgreSQL primary with dozens of read replicasrather than sharded distributed databasesto power ChatGPT and API workloads at unprecedented scale (800M users, millions of QPS). :contentReference[oaicite:6]{index=6}

Engineering choices with real impact

  • Instead of jumping to exotic distributed systems, the team optimized traditional PostgreSQL with connection pooling, caching, workload isolation, and aggressive query tuning. :contentReference[oaicite:7]{index=7}
  • Read traffic is largely offloaded to replicas, while write-heavy tasks are selectively migrated to sharded systems like CosmosDB, striking a practical balance between simplicity and scalability. :contentReference[oaicite:8]{index=8}

Lessons for platform builders


This work isn't just about internal scaling; it reframes architectural assumptions for AI and high-throughput platforms. It suggests that relational databases, when engineered carefully, remain viable at scales many thought were exclusive to distributed SQL or NoSQL systems a strategic insight for CTOs and infrastructure architects navigating AI-driven product growth. :contentReference[oaicite:9]{index=9}

More in Other

All Other stories

Coinbase for Agents: Automating portfolio trading with AI

Coinbase for Agents connects AI agents to live financial execution, letting them trade, pay, and rebalance within user-defined limits straight from a portfolio. It offers a CLI path for dev tools like Claude Code and Codex and a Model Context Protocol path for web agents like ChatGPT and Claude, with agents confined to isolated portfolios and run through Know-Your-Transaction checks. It completes a stack that began with AgentKit (2024) and the x402 agent-payments protocol, turning LLMs from advisors into actors.

Microsoft's open source tools were hacked to steal passwords of AI developers

Microsoft disabled dozens of its open-source GitHub projects - at least 70 - after hackers reportedly injected password-stealing malware into the code. Many affected projects relate to Azure and tools used with AI coding apps like Claude Code, the Gemini CLI, and VS Code, with credentials stolen when developers opened the compromised tools. It's reportedly Microsoft's second such breach in weeks, described as a re-compromise of a previously hit project.

Antigravity 2.0: a platform to orchestrate autonomous AI agents

Google expanded Antigravity, its agent-first development platform, beyond coding into a system for developing and managing cohorts of autonomous AI agents - headlined by Antigravity 2.0, a standalone desktop app that acts as a central home for orchestrating agents across tasks. It runs on a specially optimized version of Gemini 3.5 Flash that Google says is 12x faster than other frontier models. Users could start trying the experience at I/O.