November 26, 2026

Desert Dunes City: Cross the Desert to Rust

City 3 of our migration game moves a legacy backend to Rust, one module at a time, while the old code keeps serving. Here is what its 12 levels teach.

Desert Dunes City: Cross the Desert to Rust

City 3, Desert Dunes City, is the backend chapter of the game that started with Strangler Fig City. A desert town runs on an old backend that is slow and hard to keep alive in the heat. Mayor Camel leads the caravan to Rust, one module at a time, while the old code keeps serving.

Mayor Camel in a dark suit beside the Level 1 card, Map the caravan, Java to Rust: Your caravan carries Java to Rust. Before the first dune, learn how the trip works: one piece at a time, with the old city still open.

Play it: open MigrateX Games and pick Desert Dunes City. Choose your starting stack: COBOL, Java, PHP, Python, Go, Node.js, C# or Ruby. The questions and code change with it.

12 levels across the dunes

ZoneLevelsWhat you learn
Caravanserai1. Map the caravanHow a move to Rust works
Old Ruins2–5. Should you move at all?, Count the caravan, Read the old scrolls, Bottle the sandstormWeigh the trip, list what runs, record real traffic
Twin Oases6–7. Twin oases, One well, one ownerRun both side by side and share data safely
Type Canyon8–9. Carve the types, Mirage huntTurn loose data into types, match every edge case
Rust Oasis10–12. Sand-proof tests, Bury the ruins, Oasis opensTest, switch off the old code, go live

Five lessons worth the trip

Rust won't fix waiting

If your service spends its time on the database, a rewrite barely helps. Move CPU-heavy hot paths and parsers of untrusted input first. Leave the admin page alone.

The old code is the spec

Rounding, defaults, retries, time zones and the 2 a.m. job no route points to. Find them in the code, crontabs and config, not the README.

Record real traffic

Masked production requests become your golden tests. Same inputs, same outputs, or it isn't done. The compiler checks memory, not business rules.

One router, one owner

A router lets you shadow a route, shift a little traffic and flip back in seconds. Every table and cache gets exactly one owner. Never write the same row from both sides.

Mirages hide in the edges

Null versus Option, float versus decimal, string length, sort order and time zones. They look the same until a customer sees a different total.

The finish is deliberate: route everything to Rust, wait a full business cycle, move the jobs, go read-only, archive, then delete. Then report CPU, p99 latency and cost against the old baseline. That number is the story of the migration.

Go deeper

The levels are built on our guides: Java to Rust, PHP to Rust and COBOL to Rust.

Play Desert Dunes City, or go back to City 2, Blue Bay City. Moving a real backend? Start with a MigrateX assessment.

References

Further reading

  1. M. Fowler. Strangler Fig. martinfowler.com. https://martinfowler.com/bliki/StranglerFigApplication.html