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.

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.

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
| Zone | Levels | What you learn |
|---|---|---|
| Caravanserai | 1. Map the caravan | How a move to Rust works |
| Old Ruins | 2–5. Should you move at all?, Count the caravan, Read the old scrolls, Bottle the sandstorm | Weigh the trip, list what runs, record real traffic |
| Twin Oases | 6–7. Twin oases, One well, one owner | Run both side by side and share data safely |
| Type Canyon | 8–9. Carve the types, Mirage hunt | Turn loose data into types, match every edge case |
| Rust Oasis | 10–12. Sand-proof tests, Bury the ruins, Oasis opens | Test, 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
Backend to Rust guides
More from MigrateX Games
Further reading
- M. Fowler. Strangler Fig. martinfowler.com. https://martinfowler.com/bliki/StranglerFigApplication.html