← LessonsPIXEL PATH Β· 4–6✨

Firefly Hash Ring

LESSON 124
🎯 Today's missions
βœ¨β—ŒπŸŒ³
ENCHANTED FOREST

Firefly Hash Ring

Hundreds of fireflies need a home tree. Build a ring rule that always finds a homeβ€”and moves only a small group when one tree sleeps.

🧠 Before we start

At the sakura gate, you used a token to give each request a steady identity. Today, each firefly name also gets a steady spot. Consistent hashing places names and trees on one ring, then walks clockwise to the next tree.

✨ Nameβ†’πŸ“ Ring spot→↻ Walk clockwiseβ†’πŸŒ³ Next tree
Challenge 1 of 4Build the ring rule
1

Arrange the routing program

Tap three visual instruction blocks in the safe order. A firefly needs a ring spot before it can search for a tree.

MY CONSISTENT-HASHING VISUAL PROGRAM
1 Β· PLACE
2 Β· WALK
3 Β· HOME

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨