Keep core data coherent
Treat related database changes as one product decision.
Home / Product / Transactions and failure control
Keep multi-step work coherentKeep multi-step record work inside a clear success boundary, while choosing which optional outcomes may continue after a recoverable failure.
Imagine accepting an invitation but failing to create the membership, or marking an order fulfilled without recording its shipment. Multi-step work becomes dangerous when every change commits independently.
Daptin runs action-related database work inside a transaction. If a required outcome fails, the record changes can roll back together. Individual outcomes may explicitly continue after an error when they are truly optional.
This creates a predictable data boundary without pretending that outside networks are transactional. Provider calls, mail delivery, and other external effects still need retry and recovery design.
Treat related database changes as one product decision.
Let a nonessential follow-up fail only when the action says it may.
Design the response and recovery path instead of accepting silent partial success.
Transactions and failure control does more when it can reuse the records, people, access rules, and workflows already in your application.
The action begins a database transaction.
Related record outcomes run in order.
A failure stops or continues according to the declared rule.
Commit on success or roll back the protected database work.
Start from the experience you want to create; the backend capability supports the work behind it.
Create the membership and update the invitation together.
Record the status, owner, and related fulfilment data coherently.
Apply related updates without leaving a partially changed set.
These capabilities share the same application context, so each one makes transactions and failure control more useful.
A database transaction cannot roll back an email already sent or a provider request already accepted. Design external effects around durable records, idempotency where available, retries, and honest status.
Run Daptin locally, explore the live administration surface, and follow one complete application path.