OpenAI Habitat: Scaling Storage to 1 Billion ChatGPT Users
LLM benchmarks 2026 tell you which model is smartest. They tell you nothing about whether your app stays up at 70 million requests per second. OpenAI’s engineering team just published the first part of a two-part post on Habitat, the online storage platform behind ChatGPT, and it is the most useful infrastructure write-up of the year precisely because it is about the layer nobody benchmarks — the storage and serving fabric that decides whether a model’s intelligence ever reaches a user. The headline numbers: Habitat now handles more than 70 million requests every second, serves products used by over 1 billion people each week, and holds more than 500 petabytes of data across almost 40 geographic regions.
This is a breakdown of how Habitat got there, what the engineering team actually had to fix, and which lessons transfer to teams operating at a hundredth of that scale.
What Habitat actually is
Habitat began as a small idea with a clean shape: product engineers should not have to think about database management. It launched at DevDay 2023 to support GPTs, not as a grand platform, but as a simple Python client-side library connected to a single database — Azure Cosmos DB — on the back of ChatGPT’s main server. It exposed a small set of operations that mapped under the hood to the database application.
The library’s job was to absorb everything a product team would otherwise do by hand: schema lookup, routing, authorization, encryption, serialization, request shaping, and connection pooling. An engineer who wanted to store or retrieve data did not need to know where the data physically lived, or even whether it came from Cosmos DB, a cache, or some other store. Habitat decided what kind of data was involved, where it should go, whether the request was allowed, and how to encode it.
That abstraction caught on fast. Habitat saw rapid adoption among OpenAI’s product engineers even without a central push away from self-serve Postgres and Cosmos DB. That organic growth is the origin story of the platform’s later pain: a shared library that dozens of services import is easy to adopt and hard to evolve.
The numbers, stated plainly
The scale is worth sitting with before diving into mechanics. More than 70 million requests per second, sustained. Over 1 billion people served each week. More than 500 petabytes of data under management. Almost 40 geographic regions. And the growth curve that produced those numbers: three consecutive years of roughly 10x year-over-year growth.
Most infrastructure teams design for a 10x increase in load and then plan to revisit the architecture years later. OpenAI instead absorbed compounding 10x growth annually, three years in a row. That is the context that explains every design decision in the post — nothing was premature optimization, and nothing was a luxury rewrite. Each move was a forced response to a load curve that would not flatten.
The team’s framing is blunt about what made their situation unusual. Building and operating infrastructure at this scale is hard but not exotic; the unique part was the rate at which they had to scale, while simultaneously building out a mature platform, and doing it against storage and compute capacity crunches. They describe the process as a series of tactical decisions and sequencing: understand each component at the lowest level, squeeze as much as possible out of the existing stack, and buy time for foundational investments.
Why a library had to become a service
The first structural decision was turning Habitat from a shared Python library into a standalone service. The trigger was the classic failure mode of any widely imported library: a change to the client library required complex coordination across dozens of services, and that coordination grew brittle.
The post gives a concrete example of how bad it got. A bug fix for something they realized was incorrect would take a couple of days to roll out — across every service that imported the library. Eventually they would be ready to flip a feature flag, only for one team to roll back their service for an unrelated reason to a previously buggy client, which then caused the exact outage they had worked to avoid. The dependency graph of a shared library means every service can silently reintroduce an old bug.
Converting Habitat into a service created a single point of control for deployments, observability, and platform changes. It also created a single enforcement point for data security and privacy: access control policies, audit logging, and restrictions on underlying storage resources now run through Habitat rather than being distributed across product services. That consolidation is as much a compliance win as an operational one — it is why the storage layer matters to security posture, not just to uptime.
What most enterprise AI adoption guide writers skip
Every enterprise AI adoption guide I have read spends pages on model selection, evaluation, and prompt strategy, and almost nothing on the storage and serving layer underneath. Habitat is the counter-argument. If the data your product reads and writes is slow, inconsistent, or unavailable, the quality of the model is irrelevant — the user experiences the latency and the error, not the reasoning capability.
The specific lesson is that the storage layer is where enterprise adoption silently dies. A model that works in a demo against a single Postgres instance behaves differently when it has to serve a global user base with data residency and latency requirements. Habitat’s evolution — from a single database to a globally distributed platform with almost 40 regions — is the shape of the problem every serious deployment eventually hits, just compressed into a shorter timeline.
The second lesson is that consolidation creates control. Before Habitat became a service, policy and observability were scattered across dozens of services. After, they were one enforcement point. If your adoption plan does not name the storage and serving layer as a first-class concern, you have not planned for scale; you have planned for a pilot.
Python at scale: the tuning war stories
The most valuable part of the post for working engineers is the set of specific, reproducible problems they hit running Python as a serving language, because they are the same problems that show up in much smaller systems.
The first is an asyncio scheduling delay caused by periodic JSON parsing of feature flag configurations from Statsig, a feature management tool. The flag config refreshed on a one-minute cycle with no jitter, across eight processes per pod. When the refresh fired, all eight workers stalled simultaneously on the parse, and that stall dominated tail latency even when downstream calls were fast. The fix was threefold: a smaller targeted config, a longer refresh interval, and added jitter so the parses no longer synchronized across processes.
The second is a connection-pooling metastable failure. Python’s aiohttp TCPConnector defaults to LIFO connection reuse, which means the most recently returned connection is reused first. Under load, slower and overloaded servers return their connections later, so LIFO selects them more often, concentrating traffic on the pods that are already struggling. Switching to FIFO connection reuse broke that feedback loop and also reduced steady-state request variance.
The third is the thundering herd problem with Envoy and Istio sidecars, where a synchronized burst of requests overwhelms a shared proxy rather than the service behind it. These are not exotic distributed-systems failures; they are the everyday realities of running Python at high concurrency, and the post names them precisely enough to act on.
The constrained API, and why “boring” won
A design choice that stands out is the deliberately constrained NoSQL API. Habitat kept its query surface intentionally small to keep query costs predictable. The intuition is that a rich, general-purpose query API invites expensive operations, and in a system serving 70 million requests per second, an expensive query is a global incident, not a slow page.
This is the opposite of the instinct most teams have, which is to expose the full power of the underlying store and let callers be smart. Habitat chose to make callers be simple instead, and to absorb the complexity of routing, caching, and access control inside the platform where it could be understood once rather than re-derived by every caller. The result is a system whose cost characteristics are predictable, which is a prerequisite for operating at that scale at all.
The Python-to-Rust rewrite, and how it actually happened
The post closes with the transition that will get the most attention: Habitat’s service was rewritten from Python to Rust in Q2 2026, and it was done by two engineers using Codex and GPT-5.5. The payoff is concrete — roughly 6x CPU efficiency and 15x memory efficiency gains.
Two details are worth underlining because they cut against the common story. First, the rewrite happened after the team had already squeezed the Python service to its limits, not instead of tuning. The asyncio and connection-pooling fixes came first; Rust was the next rung on the ladder, taken once the existing stack could not buy more. Second, the team was tiny — two engineers — and leaned on AI coding tools to cover the mechanical translation workload. That is a meaningful data point for teams asking whether a Python-to-Rust migration is a multi-quarter, multi-team project or a focused effort with the right tooling.
The sequencing — tune Python first, then rewrite — is the takeaway. Jumping straight to Rust before you understand why your Python is slow just moves the same architectural mistakes into a faster language.
Limitations and caveats
A few honest caveats. This is part one of a two-part series, so the post covers how Habitat evolved and became a service, but deliberately defers some operational detail — the team says the next part covers the operation of the platform at scale. The 70 million requests-per-second figure is a peak-sustained headline number, not a guarantee of uniform load; real traffic is bursty, and the interesting engineering lives in how the system absorbs those bursts, which is only partly covered here.
It is also worth being explicit that Habitat is an internal OpenAI platform, not a public product. You cannot deploy Habitat yourself. The value for outside teams is not the software but the decision pattern: treat the storage layer as a first-class, consolidated, deliberately constrained platform, and treat performance tuning as a prerequisite to any language migration rather than an alternative to it.
The verdict
Habitat is the most useful kind of engineering story: a boring, unglamorous layer taken seriously, tuned relentlessly, and eventually rewritten — with the numbers published along the way. The specific fixes are reusable. Add jitter to your background refresh tasks. Check whether your HTTP client uses LIFO or FIFO connection reuse. Constrain your query surface so cost stays predictable. Tune before you rewrite, then rewrite with a small team and good tooling.
The bigger lesson is that the storage and serving layer is not an implementation detail. It is the difference between a model that answers questions and a product that works for a billion people. If you are writing an enterprise AI adoption guide, this is the section you were missing.
Sources: OpenAI engineering blog, “Rapidly scaling online storage to serve over 1 billion ChatGPT users” (openai.com); OpenAI API documentation and Habitat-related coverage by daily.dev and bymachine.news.