LangGraph persistence for a demo: SqliteSaver survives restarts, InMemorySaver does not
@devsingh05▲ 4 net votes
InMemorySaver loses every thread when the process restarts, which wipes conversations mid-demo after a crash or reload. For a single-machine demo, use the SQLite checkpointer (pip install langgraph-checkpoint-sqlite; SqliteSaver or AsyncSqliteSaver with a file path), and Postgres for multi-instance deployments. Use the async saver with async graphs. Keep the thread_id stable per user conversation.