liveBook · Manning

WiredTiger

As explained in MongoDB 8.0 in Action, Third Edition

An encrypted storage engine is a database storage engine that protects persisted data through encryption.

WiredTiger is MongoDB’s default storage engine, designed for scalable data management. It combines MVCC, document-level concurrency, caching, compression, indexes, projections, and ACID transactions to improve performance and reduce contention. section 8.1

Its main operational characteristics include:

  • MVCC permits concurrent reads and writes with minimal blocking, while optimistic concurrency control detects conflicting changes and may retry transactions. section 8.1 section 8.2
  • In-memory caching reduces disk access, and compression lowers storage and I/O requirements at the cost of additional CPU use. section 8.1 section 8.6
  • Write-ahead journaling records changes between checkpoints so MongoDB can replay them after an unexpected exit; Snappy compression is the default for journal entries. section 8.1.2
  • Single-document operations are atomic, making them sufficient when related data can remain within one document rather than requiring a multidocument transaction. section 8.2 section 8.6

WiredTiger supports row-oriented and column-oriented storage configurations, a key-value mode, and schema features such as indexes and projections. MongoDB also uses it beneath single-document atomicity and multidocument ACID transactions, including transactions spanning shards. section 8.1 section 8.6

For sensitive persisted data, the WiredTiger Encrypted Storage Engine provides database-level AES-256 encryption. Atlas can use customer-managed keys from AWS KMS, GCP KMS, or Azure Key Vault, allowing key rotation and revocation alongside provider-managed disk encryption. section 20.5.3

Figure 20.2 Atlas’s encryption architecture shows the interaction between MongoDB Server, AWS KMS, and Atlas’s internal security layers. (Image © MongoDB 2024 CC BY-NC-SA 3.0)

Trace how Atlas, MongoDB Server, internal security layers, and AWS KMS cooperate to decrypt deployment keys before WiredTiger accesses encrypted data. section 20.5.3

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains storage features, journaling, atomicity, concurrency conflicts, and encryption architecture without detailing configuration procedures.
Examples
Uses single-document updates, checkpoint journals, sharded transactions, and Atlas encryption with AWS KMS as concrete examples.
What it assumes
Assumes familiarity with MongoDB documents and operations while explaining atomicity, concurrency, journaling, and encryption relationships.
What you can do after
Evaluate storage, transaction, durability, concurrency, and encryption choices for MongoDB deployments.
How it connects
Connects MongoDB, MVCC, ACID transactions, optimistic concurrency control, journaling, compression, sharding, and key management services.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.