← LessonsCREATOR PATH Β· 10–12πŸŒ‹

Volcano Two-Phase Launch

LESSON 134
🎯 Today's missions
πŸŒ‹πŸ”’πŸ›°οΈ
VOLCANO ISLAND

Volcano Two-Phase Launch

Three safety stations must switch the lava shield together. Coordinate one all-or-nothing update so the island never ends with half the shield on and half off.

🧠 Before we start

Pizza Saga Kitchen repaired a partly finished job by undoing completed steps. Today, two-phase commit prevents a partial result: first every participant prepares and votes, then one shared decision tells everyone to commit or abort.

πŸ“£ Prepareβ†’πŸ—³οΈ Collect every voteβ†’πŸ”’ Remember decisionβ†’πŸ“‘ Tell everyone
Challenge 1 of 4Build the two phases
1

Build the atomic protocol

Tap the stages in order. The coordinator must ask before deciding, and it must save one decision before broadcasting the result.

TWO-PHASE COMMIT Β· ONE GLOBAL DECISION
1 Β· ASK
2 Β· VOTE
3 Β· SAVE
4 Β· TELL

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨