/ The Arena
Prove your engineering skills.
GLOBAL+50 XP
Build a Distributed Saga Orchestration Engine with Compensating Actions
Landmark Capstone Challenge: Distributed Saga Orchestrator ⚔️
In this landmark capstone challenge, you will implement a resilient Saga Orchestrator State Machine that executes multi-service workflows and performs LIFO backward recovery upon step failures.
Requirements:
- Sequential Forward Execution:
- Iterate through registered saga steps in order ().
- Mutate shared context and record each successfully executed step name into
executedSteps.
- Backward Recovery (LIFO Compensations):
- If any step fails (returns
falseor throws an error), stop forward progress immediately. - Pop and execute the compensating transactions () for all previously completed steps in reverse order (LIFO).
- Record each compensated step name into
compensatedStepsand return{ success: false, ... }.
- If any step fails (returns
- Deterministic State Mutation:
- Ensure the final state reflects all compensations applied during rollback.
Join The Arena
Create an account to submit your implementation, test against our containerized CI suite, and climb the global leaderboard.
Create AccountALREADY HAVE AN ACCOUNT? LOG IN