# Atomicity

Record: `arch:atomicity`
Kind: principle
Layer: [Atomic Boundary](https://banes-lab.com/records/layer/atomic-boundary.md)
Severity: mandatory
Scope: transaction, operation, workflow
Canonical: https://banes-lab.com/ontology#arch-atomicity

## Repair

- Refactored by: Add Transaction, Add Saga/Compensation
- Detected by: multi-step writes without transaction/compensation
- Violated by: partial updates after failure
- Measured by: partial failure rate
- Enforced by: transaction tests

## requires

- [Transaction Boundary](https://banes-lab.com/records/arch/transaction-boundary.md)

## reinforces

- [Consistency](https://banes-lab.com/records/arch/consistency.md)
- [Correctness](https://banes-lab.com/records/arch/correctness.md)

## enables

- [All-or-Nothing State Change](https://banes-lab.com/records/lex/all-or-nothing-state-change.md)

## conflicts-with

- [Partial Commit](https://banes-lab.com/records/lex/partial-commit.md)

## tensions-with

- [Distributed Scalability](https://banes-lab.com/records/lex/distributed-scalability.md)

## tensions

- [Atomicity Distributed Scalability](https://banes-lab.com/records/tension/atomicity-distributed-scalability.md)

## referenced-by

- [ACID](https://banes-lab.com/records/arch/acid.md)
- [Transaction Boundary](https://banes-lab.com/records/arch/transaction-boundary.md)
- [Unit of Work Pattern](https://banes-lab.com/records/arch/unit-of-work-pattern.md)
