Models ·
Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)
OpenAI describes how it scaled Habitat, its online storage platform for ChatGPT, by redesigning its use of Azure Cosmos DB around co-managed multi-tenant containers and global caching, delivering 12× faster reads for over 1 billion users.

OpenAI published the second part of a series on Habitat, the storage platform that serves data for over 1 billion ChatGPT users across 40 geographic regions and holds more than 500 petabytes. Part II covers how the team scaled the underlying database, Azure Cosmos DB, in partnership with the Azure team, arriving at a multi-tenancy approach based on co-managed containers with strong read performance at global scale, which the publisher says yields 12× faster reads.
Habitat's team moved through what they call a circular journey: starting with one multi-tenant Cosmos DB container per account, then provisioning single-tenant backing containers, and finally reverting to multi-tenant containers by default. Early on, clients chose logical partition keys directly, causing collisions on common keys like user_id and workspace_id across products. Since Cosmos DB enforces limits at the physical partition level rather than per logical key, hot tenants could degrade unrelated workloads, including core login and signup flows, and effective per-partition throughput shrank as data grew and partitions split.
For teams building AI products at scale, the post is a concrete account of the single-tenant versus multi-tenant tradeoff: single tenancy isolates workloads but forces every team into capacity planning and over-provisioning, while multi-tenancy centralizes operations but risks noisy-neighbor problems. It also illustrates why documented per-key limits may not reflect real throughput when limits are enforced at a different layer, a pitfall relevant to anyone running shared database infrastructure under hot-key load.
References
- OpenAI · openai.com
Read the full story at OpenAI ↗Like, save or discuss on Buzz



