ExitACID Transactions: transaction boundaries in ingestion1 / 7
Explanation

Put related ingestion updates inside one boundary

How ACID transaction boundaries protect ingestion updates, independently of whether processing is stateful or stateless, and where checkpoint recovery requires coordination beyond a database commit. · associate

A transaction is a logical unit of work that commits or aborts. During ingestion, one batch might insert event rows and update a batch-summary row. If those changes must agree, put them in the same transaction boundary: begin the transaction, perform both updates, and commit only when the whole unit succeeds.

Atomicity makes the changes take effect together or not at all. Consistency means the transaction preserves defined rules, such as unique event identifiers and valid references. The database enforces declared constraints, but application logic must still calculate the summary correctly. Two separate commits do not become one atomic operation just because the same worker issues them.

Isolation controls interactions with concurrent transactions; choose an isolation level that protects the operation from relevant anomalies. Durability means acknowledged commits survive failures within the database's documented guarantees. Choose the smallest supported transaction boundary that protects the required rules, and keep unrelated work outside it.

PropertyProtection in ingestion
AtomicityRelated updates succeed together
ConsistencyDefined data rules remain valid
IsolationConcurrent work follows isolation rules
DurabilityAcknowledged commits persist