Keep core data coherent
Treat related database changes as one product decision.
Home / Product / Transactions and failure control
Keep multi-step work coherentCommit required record changes together and declare which optional outcomes may continue after a recoverable condition.
Create the invitation membership and shipment record inside the same transaction as their parent operation. Multi-step work becomes dangerous when every change commits independently.
Daptin runs action-related database work inside a transaction. Commit protected record changes after every required outcome completes successfully. Allow a declared optional outcome to continue while recording its result for operators.
Protect database changes with a transaction and persist outside work for idempotent delivery and recovery. Provider calls, mail delivery, and other external effects still need retry and recovery design.
Treat related database changes as one product decision.
Declare a nonessential follow-up optional and record its outcome beside the action.
Return a clear action result and record the recovery path for every incomplete optional outcome.
Apply transaction rules to the same records, users, permissions, and actions that power the application.
The action begins a database transaction.
Related record outcomes run in order.
Use each outcome’s declared rule to commit the transaction or continue the action.
Commit protected database changes after every required outcome completes; otherwise roll them back.
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 record updates inside one transaction and commit them as a complete set.
Use shared records, identities, permissions, and actions to define each transaction boundary and outcome rule.
Persist email and provider work before dispatch, then use idempotency keys and recorded outcomes for recovery. 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.