Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements saga patterns for distributed transactions, compensating transactions, and long-running cross-service business workflows.
Use this skill ↓36% 68%+32 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 8 of 22 without it.
When an inventory microservice processes a reservation command within an orchestrated saga, what event must it publish upon succeeding, and what event must it publish upon encountering an inventory shortage?
The inventory service emits SagaStepCompleted upon successful item reservation.
3 of 3 safety checks passed
Patterns for managing distributed transactions and long-running business processes.
Choreography Orchestration
┌─────┐ ┌─────┐ ┌─────┐ ┌─────────────┐
│Svc A│─►│Svc B│─►│Svc C│ │ Orchestrator│
└─────┘ └─────┘ └─────┘ └──────┬──────┘
│ │ │ │
▼ ▼ ▼ ┌─────┼─────┐
Event Event Event ▼ ▼ ▼
┌────┐┌────┐┌────┐
│Svc1││Svc2││Svc3│
└────┘└────┘└────┘
| State | Description |
|---|---|
| Started | Saga initiated |
| Pending | Waiting for step completion |
| Compensating | Rolling back due to failure |
| Completed | All steps succeeded |
| Failed | Saga failed after compensation |
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.