MongoCheckpointStore
The CheckpointStore on MongoDB: one document per (group, subscription, partition) in wow_checkpoint, keyed by a unique index.
A save is one conditional upsert whose filter admits only a lower stored position, so concurrent saves leave the highest and a lower one changes nothing (see conditionalUpsert); under ddl: none the first save of a process first makes sure of the key (MongoUniqueKeys). Calls run on dispatcher, virtual threads by default.
Functions
Creates the key index when missing.
One read of the key's prefix (group, subscription), the key index's leading fields.
One unordered bulk write of the conditional upserts save makes one by one: one round trip. An upsert the key index refuses (the guard failed on a stored checkpoint, or a concurrent insert won) is written again without upsert, as conditionalUpsert does.