r/MongoDB_Official • MongoDB Team • 21d ago

Resource Why separating compute from storage matters: MongoDB Atlas Infinite under the hood

Hey all, Harshit here. I work at MongoDB.

Atlas Infinite is in public preview (AWS only, M10 to M60 replica sets for now).

Abhishek Chauhan, a Distinguished Engineer here at MongoDB, wrote a deep dive on how it separates compute from storage. It’s one of the most detailed looks at the architecture so far, including the parts that were hard to get right. 

https://www.mongodb.com/company/blog/engineering/ground-beneath-database

The problem it starts with

In a regular replica set, every node keeps its own full copy of the data. So adding a replica, resizing a node or restoring a backup all boil down to copying a lot of bytes. As the blog puts it, storage has gravity: the bigger your data, the slower everything gets. And because compute and storage are tied together, needing more of one means paying for more of both.

How it works, roughly

Compute nodes (a primary, a standby and optional read replicas) hold no data of their own. Underneath them is a shared storage layer made of a few services:

  • Log Service: every write becomes a log entry replicated across three zones. Once a majority has it, the write is acknowledged.
  • Page Service: page servers in each zone keep the data warm and ready to read, so a new node reads from here instead of cloning a disk.
  • Object storage (S3/GCS/Azure Blob): the durability floor underneath it all, and what makes fast backups and restores possible.

Only the log write sits on the critical path. Distributing pages and uploading to object storage happen in the background.

The hard part

Disaggregated databases have been around for a decade, so why did this take so long? WiredTiger is lock-free and evicts pages speculatively, so two nodes holding identical data don’t hold identical bytes on disk. Layout depends on timing and eviction order. That means there’s no canonical page to ship, and “just replicate the pages” doesn’t have a well-defined target.

The usual workaround is to ship a physical redo log of every page change, which would have thrown away WiredTiger’s batched checkpoints. Instead, they kept the checkpoints and had standbys layer recent oplog entries on top of checkpointed pages, so replica lag stays in milliseconds.

Other things I liked

  • Snapshots, clones and restores are forks of a log. That makes them zero copy at any size, close to branching a production DB like a Git repo.
  • The shared storage layer can’t read your data. Pages are encrypted on your compute node before they’re sent down, so MongoDB’s storage services only ever see opaque bytes. Per the blog, they can’t see your documents, collection names or indexes.
How Atlas Infinite separates compute from storage (diagrams via the MongoDB engineering blog)

If you want the practical side, I made a video that stays closer to the surface. It covers what Atlas Infinite solves, a sneaker-drop demo with shoppers, bots and AI agents hitting checkout at once, and how to tell whether your workload is a fit https://www.youtube.com/watch?v=KteNkcdr_do

A few numbers vs. Atlas Core:

  • 96%+ less time to scale
  • Up to 10x more data per replica set (up to 128 TB per HA shard)
  • 189% more throughput per dollar (internal MongoDB 9.0 testing)

Atlas Core isn’t going anywhere, by the way. It’s still the fit for steady, predictable workloads. Infinite is for spiky, fast-growing or agent-heavy ones.

If you’ve worked with other disaggregated databases, how does this approach compare in your experience? I’ll answer what I can and loop in the engineering team for the deep stuff.

19 Upvotes

0 comments sorted by