Is OpenAI really running ChatGPT on a single PostgreSQL instance?

Is OpenAI really running ChatGPT on a single PostgreSQL instance?

5 14
calendar_todayschedule1 min read
— Originally published at matevosian.tech

The headline of OpenAI’s recent article https://openai.com/index/scaling-postgresql/ feels a bit clickbaity,
If they truly used only one database instance, ChatGPT would’ve been dead on arrival.

But the reality is far more impressive: they’re using the right tool for each layer of the persistent stack:

  • They push PostgreSQL to its absolute limits, with a single primary writer, yes, but backed by nearly 50 read replicas across global regions.

  • For write-heavy workloads, they’ve wisely migrated to sharded systems like Azure Cosmos DB.

  • They’ve added layers of resilience:

    • connection pooling with PgBouncer,
    • query rate limiting,
    • caching with lock leasing,
    • cascading replication (in testing),
    • strict schema-change policies.

It’s not magic, it’s mature, thoughtful engineering at scale.

If you work with databases, this post is absolutely worth reading.

1 Comment

1 vote
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

The Privacy Gap: Why sending financial ledgers to OpenAI is broken

Pocket Portfolio - Feb 23

S-MoE Started to Speak OpenAI — Point Any Chat App at Your MacBook and Watch a 235B Model Think

melasistema - Jul 20

OpenAI GPT-5.6 is Here: Everything You Need to Know About Sol, Terra & Luna

YasirAwan4831 - Jul 11

5 Things This Playwright SQL Fixture Does So You Don't Have To

vitalicset - Apr 13

Which is Better for Prompt Engineering: Deepseek R1 or OpenAI o1?

Shivam Bharadwaj - Feb 10, 2025
chevron_left
258 Points19 Badges
Ukrainematevosian.tech
4Posts
1Comments
6Connections
Java Developer | Udemy course author - Application Security with OAuth 2.0 and OpenID (https://short... Show more

Related Jobs

View all jobs →