Cloud Durians — DevOps

Move a durian orchard's order site to the cloud: functions, edge, PaaS, OpenTofu. Real tools. 15 levels, played right in the browser with nothing to install.

What you learn in this game

On an ordinary server, your app runs all the time and waits for requests. On Lambda, the provider starts an execution environment when a request comes, calls one function, then keeps the environment a little while for the next request. In Durian Awan, every function runs on the real Lambda runtime on Debian, and every phone gets the answer the gateway really gave.

Phones are not the only callers. A schedule calls a function at a set time with one event, and a queue calls it for every message that comes in, several at once. Every call has a time limit. Work that grows with the number of orders will hit it one day.

Next.js on Vercel runs code in two places. Node.js functions are complete and live in one region. Edge is a small V8 isolate that runs near the visitor, with web APIs only. Middleware runs before the page, for every path its matcher matches. The site in this level is built by a real next build and served by next start.

On a PaaS you hand over code, and the platform installs the runtime, runs the process and restarts it when it dies. What is still yours: the code, the web process, and how many dynos run. The platform in this level runs real dynos on Debian, with a Heroku-style router and log.

OpenTofu reads .tf files that say what should exist, compares them with what really exists, and makes a plan: create, update, or destroy. apply carries the plan out. In this level and the next, OpenTofu and its AWS provider really run against moto, an AWS stand-in on the laptop.

The cloud means renting servers, storage and networks, and paying for what you use. Three things surprise people on the first bill: the distance to the region, the data that goes out to the internet, and the way to pay. The numbers in this level are the lesson's examples, not today's price list. The photo sizes are real encodes.