OLTP
medium 28 minOLTP, online transaction processing, is the work of recording business events as they happen: an order, a payment, a booking.
Where it shows up
The same pattern appears across everyday software.
Online shops
Placing an order reduces stock, writes the order and its lines, and either all of it exists or none.
Bank transfers
Two balances and one journal entry change together. The journal is never edited, only added to.
Seat booking
A seat row is locked or updated with a condition, so two people cannot have it.
Hospital appointments
A slot is unique for a doctor and a time. A unique constraint makes the second booking fail.
Ride hailing
Assigning a driver is one conditional update: free becomes busy. Maps and history live elsewhere.
The TPC-C benchmark
A standard OLTP workload with new orders, payments, deliveries and stock checks, used to compare systems since 1992.