⚙️Checkpointing (Stream Processing)
Also known as Checkpoint, Stream Checkpoint, Savepoint
It saves a stream job's state and place. Then a crash loses nothing.
Think of it like
It is like saving a video game. If you lose, you start again from the last save, not from the start.
Example
A Flink job saves a checkpoint every 30 seconds. After a server dies, it restarts from the last one and the totals are still right.
Why it matters
Long-running stream jobs will crash at some point. Checkpoints are what make exactly-once results possible.
Definition
Common mistake
Key takeaways
- 1State and position together. Saved at the same moment.
- 2Restart from the last. Then replay from that place.
- 3Durable storage. Not the server's own disk.