Skip to main content

Module checkpointers

Module checkpointers 

Source
Expand description

Checkpointers for shared databases.

Each backend sits behind the feature of the same name and passes the conformance suite (the conformance feature). They store the whole Checkpoint as JSON text next to the columns or keys they query, so a loaded checkpoint equals the saved one and new checkpoint fields need no schema change.

BackendFeatureVersion rule enforced by
PostgresCheckpointerpostgresA guarded INSERT and a unique index on (thread_id, version)
RedisCheckpointerredisOne Lua script per save, reading the thread’s highest version
MongoCheckpointermongodbA compare-and-set on the thread’s head document and a unique index on (thread_id, version)
Neo4jCheckpointerneo4jA write lock on the thread’s node, taken before the head is read
FirestoreCheckpointerfirestoreA read-write transaction over the thread’s head document

Modules§

firestore
Firestore Checkpointer.
mongodb
MongoDB Checkpointer.
neo4j
Neo4j Checkpointer.
postgres
PostgreSQL Checkpointer.
redis
Redis Checkpointer.