Glossary: System Design Basics in JavaScript
Atomic operation
Also written: atomic, atomic update
One step that can't be split, so nothing can happen between the check and the change. A single `UPDATE ... WHERE qty >= ?` checks and subtracts stock at once, so two checkouts can't sell the same last bag.