
TCC (Try-Confirm/Cancel) model
The TCC (Try-Confirm/Cancel) model is a transaction process used in systems like banking and online services to ensure data integrity. It involves three steps: first, a "Try" phase where resources are tentatively reserved; second, a "Confirm" phase where, if all conditions are met, the reservation becomes permanent; and third, a "Cancel" phase if the process fails or is aborted, releasing reserved resources. This approach prevents issues like double bookings or errors, ensuring that actions are either fully completed or cleanly rolled back.