@event-driven-platform/execution-transaction
v0.0.4
Published
Transaction boundary contracts for atomic event-driven platform execution.
Readme
@event-driven-platform/execution-transaction
Defines the transaction boundary Runner uses to execute domain work and persistence work atomically.
Installation
pnpm add @event-driven-platform/execution-transactionAPI
ExecutionTransaction— consumer-provided transaction contract.ExecutionTransactionWork— work executed inside the transaction boundary.ExecutionTransactionOutcome— commit/rollback outcome union.ExecutionTransactionOutcomesand exported type guards — supported outcome construction and narrowing helpers.
Consumers adapt their database/unit-of-work mechanism to this port. Runner owns when the transaction is used and how its outcome affects execution.
