liveBook · Manning

Checkpointing

As explained in MongoDB 8.0 in Action, Third Edition

A stream processing checkpoint is a persisted record of processing progress and state that allows a stream processor to resume consistently after interruption.

Checkpointing persists processing progress and state so a stream processor can resume consistently after interruption. In Atlas Stream Processing, checkpoint documents act as bookmarks that prevent missed or duplicated data. section 15.7.1 section 15.9

A stream processor commits a checkpoint through a defined sequence:

  • A checkpoint document follows the processor’s logic flow and reaches the final operator. section 15.7.1
  • The processor commits the checkpoint ID together with status records for each stateful operation. section 15.7.1
  • After a restart, the processor retrieves the last committed checkpoint and resumes from its saved state. section 15.7.1

Checkpointing trades retained recovery information for storage. In WiredTiger, durable checkpoints provide consistent recovery points, while journaling records modifications made between checkpoints and replays them after an unexpected exit. section 8.1.1 section 8.1.2

Restarting a stateful stream processor

A processor aggregates events across stateful operations and commits a checkpoint after the final operator completes. If the processor stops, it loads the latest committed checkpoint, restores operator state, and continues from the recorded stream position rather than reprocessing an uncertain range. section 15.7.1

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains checkpoint records, commitment, restart recovery, and durable storage, but does not specify checkpoint configuration commands.
Examples
Uses checkpoint documents, stateful operators, processor restarts, WiredTiger data files, and journal replay as concrete examples.
What it assumes
Assumes familiarity with stream processors, stateful operations, interruptions, and persisted database state.
What you can do after
Operate Atlas Stream Processing with resumable progress and understand how WiredTiger combines checkpoints with journaling for recovery.
How it connects
Connects checkpointing with stateful stream processing, journaling, write-ahead logging, MVCC, and data durability.

Also explained in

Compare how 6 books explain checkpointing →

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.