Checkpointers, Threads & Store
LangGraph persistence end to end: checkpointers and thread_id for resumable runs, get_state and time travel, PostgresSaver in production, and the Store for memory that outlives a thread.
Last updated
After this section you can
- Make a graph resumable with a checkpointer and a thread_id
- Inspect, rewrite and fork a run with get_state and get_state_history
- Pick the right checkpointer backend for your deployment
- Put durable facts in a store instead of growing the thread forever
Checkpointers, Threads & Store
One argument to compile() turns a graph into something that survives a crash. A second one gives it memory that outlives the conversation. They are different layers and mixing them up is the usual bug.
A checkpointer saves the state after every node, keyed by thread_id — that is what makes a run resumable. A store saves facts keyed by whatever namespace you choose, outside every thread — that is what makes an agent remember you tomorrow.