Is OpenAI really running ChatGPT on a single PostgreSQL instance?

Is OpenAI really running ChatGPT on a single PostgreSQL instance?

2 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

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

vitalicset - Apr 13

ChatGPT vs Claude AI: Which AI Assistant Is Better for You in 2026?

sumita - May 19

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

Shivam Bharadwaj - Feb 10, 2025

Getting Started with PostgreSQL: Best Practices from Development to Production

Sunny - Mar 15
chevron_left
257 Points16 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 →

Commenters (This Week)

1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!