c541cc93-1688-5eaa-0494-f926e090e193
MongoDB Engineering Hub
Docs Portal
MongoDB Database Engine & Atlas Cloud Protocol v9.0

Distributed Document Database & Global Atlas Architecture

High-throughput document database engine featuring the lock-free WiredTiger x8e-912702 engine, multi-document ACID transactions, native BSON binary wire protocol, and sub-millisecond horizontal x21-104db9.

99.999%
Multi-Cloud High Availability SLA
< 1.5ms
WiredTiger Cache Read Latency
2.5M+
Max Operations Per Second
115+
Global Cloud Regions Across Clouds
Core Storage

WiredTiger Storage Engine Architecture

WiredTiger delivers document-level concurrency control, lock-free checkpointing, and block-level compression algorithms optimized for high-write and compute-intensive enterprise workloads.

Lock-Free Document Concurrency

Provides document-level write operations using optimistic concurrency control with hazard pointers, allowing millions of concurrent updates without table or collection locks.

Block Compression & I/O Efficiency

Integrated Snappy and zlib prefix compression algorithms reduce on-disk x8e-912702 footprints by up to 70% while minimizing NVMe SSD I/O channel saturation.

Distributed ACID Transactions

Supports cross-shard multi-document ACID transactions with snapshot isolation and two-phase commit protocols for critical billing and financial records.

Integration

Polyglot Driver Query & Aggregation API

Native language driver implementations support zero-allocation BSON encoding, automatic connection pooling, and resilient retryable writes.

import { MongoClient } from 'mongodb';

const uri = 'mongodb+srv://admin:secret@cluster0.atlas.mongodb.net/?retryWrites=true&w=majority';
const client = new MongoClient(uri, { maxPoolSize: 100, minPoolSize: 10 });

async function executePipeline() {
  await client.connect();
  const db = client.db('telemetry');
  const collection = db.collection('cluster_metrics');

  const pipeline = [
    { $match: { region: 'us-east-1', status: 'healthy' } },
    { $group: { _id: '$clusterId', avgThroughput: { $avg: '$ops_per_sec' }, maxP99: { $max: '$p99_latency_ms' } } },
    { $sort: { avgThroughput: -1 } },
    { $limit: 10 }
  ];

  const results = await collection.aggregate(pipeline).toArray();
  console.log(JSON.stringify(results, null, 2));
}

executePipeline().finally(() => client.close());
from pymongo import MongoClient

client = MongoClient('mongodb+srv://admin:secret@cluster0.atlas.mongodb.net/?retryWrites=true&w=majority')
db = client['telemetry']
collection = db['cluster_metrics']

pipeline = [
    {'$match': {'region': 'us-east-1', 'status': 'healthy'}},
    {'$group': {'_id': '$clusterId', 'avgThroughput': {'$avg': '$ops_per_sec'}, 'maxP99': {'$max': '$p99_latency_ms'}}},
    {'$sort': {'avgThroughput': -1}},
    {'$limit': 10}
]

for doc in collection.aggregate(pipeline):
    print(doc)

client.close()
package main

import (
  "context"
  "fmt"
  "go.mongodb.org/mongo-driver/bson"
  "go.mongodb.org/mongo-driver/mongo"
  "go.mongodb.org/mongo-driver/mongo/options"
)

func main() {
  ctx := context.TODO()
  opts := options.Client().ApplyURI("mongodb+srv://admin:secret@cluster0.atlas.mongodb.net/")
  client, _ := mongo.Connect(ctx, opts)
  defer client.Disconnect(ctx)

  coll := client.Database("telemetry").Collection("cluster_metrics")
  match := bson.D{{"$match", bson.D{{"region", "us-east-1"}}}}
  group := bson.D{{"$group", bson.D{{"_id", "$clusterId"}, {"avgThroughput", bson.D{{"$avg", "$ops_per_sec"}}}}}}

  cursor, _ := coll.Aggregate(ctx, mongo.Pipeline{match, group})
  defer cursor.Close(ctx)

  var results []bson.M
  cursor.All(ctx, &results)
  fmt.Println(results)
}
curl --request POST \
  --url "https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters" \
  --header "Accept: application/vnd.atlas.2023-01-01+json" \
  --header "Content-Type: application/json" \
  --digest --user "{PUBLIC-KEY}:{PRIVATE-KEY}" \
  --data '{
    "name": "ProductionCluster",
    "clusterType": "SHARDED",
    "replicationSpecs": [{
      "numShards": 3,
      "zoneName": "Zone 1",
      "regionsConfig": {
        "US_EAST_1": { "electableNodes": 3, "priority": 7 }
      }
    }],
    "providerSettings": {
      "providerName": "AWS",
      "instanceSizeName": "M60",
      "regionName": "US_EAST_1"
    }
  }'
Scalability

Horizontal Sharded Cluster Topology

Automatic data partitioning across autonomous replica sets enables linear compute and x8e-912702 scaling to petabytes of operational data.

mongos Query Routers

Stateless query routing layer that caches cluster metadata from config servers and routes operations directly to the shards hosting the target chunks.

Raft-Backed Config Servers

Dedicated 3-node replica sets storing the cluster routing table and chunk distribution data with strict serializable consensus guarantees.

Automated Chunk Balancing

Background shard rebalancing engine splits and migrates range chunks across nodes without downtime or read latency spikes.

Infrastructure

Atlas Cluster Hardware Profiles

Dedicated instance tier allocations with guaranteed provisioned IOPS, memory-to-core ratios, and multi-region replication options.

Tier Dedicated vCPU System RAM NVMe Storage Provisioned IOPS Network Bandwidth
M10 2 vCPUs 4 GB ECC 32 GB - 128 GB 1,000 IOPS Up to 5 Gbps
M30 4 vCPUs 8 GB ECC 64 GB - 512 GB 3,000 IOPS Up to 10 Gbps
M60 16 vCPUs 64 GB ECC 512 GB - 2 TB 12,000 IOPS 25 Gbps Dedicated
M200 64 vCPUs 256 GB ECC 1 TB - 8 TB 48,000 IOPS 50 Gbps Dedicated
M400 NVMe 128 vCPUs 512 GB ECC 4 TB - 16 TB NVMe 96,000 IOPS 100 Gbps Low-Latency
Security & Compliance

Enterprise Security & Data Governance

Architected from the ground up for strict regulatory isolation, cryptographic data protection, and enterprise identity federation.

Client-Side Field Level Encryption (CSFLE)

Fields are encrypted on the application client before wire transmission, ensuring sensitive identifiers and secrets remain ciphered even to database administrators.

Enterprise Identity Federation

Seamless integration with Okta, PingFederate, Azure AD, and Keycloak via SAML 2.0, OpenID Connect, and SCIM automated role provisioning.

Knowledge Base

Frequently Asked Questions

Technical details on MongoDB engine internals, x21-104db9 criteria, and high-availability operational procedures.

WiredTiger uses an append-only write-ahead log (journal) combined with in-memory cache checkpoints taken every 60 seconds (or 2GB of log data). Distributed transactions leverage two-phase commit over the Raft-based replica set consensus layer, ensuring that writes are committed to a majority of nodes before acknowledgment.
An effective shard key provides high cardinality, balanced write distribution, and query isolation. Compound shard keys pairing a hashed prefix (for write distribution) with a coarse-grained tenant or timestamp attribute (for targeted queries) prevent hotspotting on specific shards.
Replica set members exchange heartbeats every 2 seconds. If the primary node becomes unresponsive for longer than 10 seconds, eligible secondary nodes initiate an election using a modified Raft algorithm. The node with the most recent optime from the oplog is elected new primary, typically completing failover in under 3 seconds.
By default, WiredTiger reserves 50% of (total RAM minus 1 GB), or 256 MB (whichever is larger), for its internal working set cache. The remainder of available system RAM is utilized by the operating system filesystem cache to speed up read access to compressed data blocks.
MongoDB Vector Search utilizes Hierarchical Navigable Small World (HNSW) graph indexing structures directly alongside BSON documents. This enables hybrid search queries combining vector distance calculations (Cosine, Euclidean, Dot Product) with metadata filter pipelines in a single unified operation.