Image for TCC (Try-Confirm/Cancel)

TCC (Try-Confirm/Cancel)

TCC, or Try-Confirm/Cancel, is a method used in transactions to enhance reliability. First, a system attempts to complete a task, like processing a payment or booking a service. If the attempt is successful, it confirms the action, finalizing it. If it fails, the system cancels the attempt, ensuring that no unintended consequences arise. This approach helps prevent errors and inconsistencies—making sure users only get what they intended. TCC is particularly important in digital environments like e-commerce, where clear, reliable transactions are crucial for user satisfaction.