Piala Camat — System Design

Design the Piala Camat bird contest's system from real runs: load, databases, services, DDD. 15 levels, played right in the browser with nothing to install.

What you learn in this game

System design is designing the parts of a system (servers, databases, caches, queues) and how they connect, so its needs are met at a given scale. Its five steps: requirements, estimates, high-level design, deep dive, then bottlenecks and trade-offs. In this game every design runs for real: small Node servers on one computer, load from autocannon, real PostgreSQL, Redis and MongoDB, and processes killed on purpose. The results are recorded. What is graded is the measured numbers, not the names you picked.

Before choosing a database, answer four questions for each feature: the shape of its data (connected tables, documents, key and value pairs, time series), how it is read (JOINs, one item by key, a time range), whether it needs ACID transactions, and how many writes a second. Five families of database answer them differently: relational, document, key-value, time-series and graph. Tonight three of them run for real at the gantangan.

A monolith is one app with one deploy: every part shares one process and one database. Microservices split it into small services, each with its own process, deploy and data, calling each other over the network. Neither is right or wrong. Numbers decide: how long one checkout takes, how many fail, who waits for whom when a change is deployed.

Domain-Driven Design (DDD) divides a system the way people in the business talk. A bounded context is the boundary inside which one word has one meaning; inside it the team and its code share one language, the ubiquitous language. The same word can mean something else in another context. That is fine, as long as each context has its own model.