Runtime consistency and boundaries
monSQLize is a database-native runtime layer. It coordinates MongoDB access, model validation, cache, transactions, pools, sync, and observability, but it does not turn those capabilities into one global strict-consistency system.
Use this page to decide which entry point to use and where application-level guarantees are still required.
Runtime layers
Runtime consistency contract
monSQLize provides runtime coordination helpers, not a global strict-consistency kernel. Current guarantees are:
Use application/framework-level coordination, explicit DistributedCacheLockManager business locks, idempotency keys, fencing tokens, durable outbox/journals, or cache bypassing when a flow requires cross-instance strict consistency.
Choosing the right entry point
When to add application-level guarantees
Add explicit application guarantees when a workflow requires all of the following at the same time:
- Database write success and cache visibility must be atomic.
- Sync targets cannot tolerate replay.
- A lock must protect multiple Node.js processes or multiple regions.
- A batch operation must behave exactly like a sequence of per-document business operations.
For those paths, combine monSQLize with durable outbox records, idempotency keys, application-level retries, or cache bypassing for the critical read path.