Microservices, one problem at a time
Follow FTGO, a food-delivery company, as it escapes its monolith. Learn the patterns two ways: play them in a game, or read them chapter by chapter, problem first.
Two ways to learn
Microservice Rescue
Learn microservices and their patterns through a game. Keep FTGO’s lunch rush running: watch orders cross the services, see what fails in red, change one line of the design, and run it again.
- 1–3 Basics: services, isolation, data ownership
- 4–6 Communication: queues, outbox, idempotency
- 7–9 Data and failure: sagas, circuit breakers, tracing
- 10–12 Boss levels: several incidents at once
Play level 1 → 12 levels · about 30 minutes
Go through the chapters
27 chapters in 12 parts. Each starts with a concrete FTGO problem, shows the pattern that fixes it with diagrams, and ends with what the fix costs: the next chapter’s problem.
Short on time? Read the Level 1 chapters first: 01 · 02 · 04 · 05 · 08 · 12 · 14 · 26. For a one-page overview, try the pattern map.
The chapters, part by part
Level 1 basics · 8Level 2 intermediate · 11Level 3 advanced · 8
Part 1Foundations
-
01Level 1
Escaping monolithic hell
Problem: FTGO's monolith slows every release and one bug takes it all down
Answer: When to split, and what microservices give and cost - ★Interactive The pattern map: every problem, and the pattern that fixes it A game through all 45 patterns: the problem each one solves and the one it creates.
Part 2Decomposition
-
02Level 1
Decomposition strategies: where to cut
Problem: Where do the service boundaries go?
Answer: Business capabilities, DDD subdomains, event storming -
03Level 2
Designing business logic inside a service
Problem: Business rules leak everywhere inside a service
Answer: Domain model, aggregates, domain events
Part 3Communication style
-
04Level 1
Interprocess communication and synchronous APIs
Problem: Method calls become network calls that fail
Answer: API contracts, REST and gRPC, service discovery -
05Level 1
Asynchronous messaging and brokers
Problem: Each synchronous hop lowers availability
Answer: Messaging, brokers, commands and events
Part 4Transactional messaging and domain events
-
06Level 2
Transactional messaging and idempotent consumers
Problem: Saving and publishing are two writes; messages arrive twice
Answer: Transactional outbox, CDC, idempotent consumers -
07Level 2
Domain events: design and schema evolution
Problem: Changing an event breaks its consumers
Answer: Event size, envelopes, schema evolution
Part 5Data management
-
08Level 1
Database per service and the shared database
Problem: Services share tables and break each other
Answer: Database per service and coping patterns -
09Level 2
Managing transactions with sagas
Problem: One order spans four databases, no ACID
Answer: Sagas, compensation, countermeasures -
10Level 3
Event sourcing: store what happened, not just where you ended up
Problem: A table row forgets how it got there
Answer: Event sourcing, event store, snapshots -
11Level 2
Queries: API composition and CQRS
Problem: One screen needs data from four services
Answer: API composition and CQRS views
Part 6External API and UI
Part 7Testing
Part 8Cross-cutting concerns
-
16Level 2
Security, configuration and the chassis
Problem: Who is the user, and where do secrets live?
Answer: Access tokens, defense in depth, externalized config -
17Level 2
Observability
Problem: Dozens of services, nobody can see inside
Answer: Logs, traces, metrics, health checks, SLOs -
18Level 2
Resilience and stability patterns
Problem: One slow service drags down the rest
Answer: Time-outs, retries, circuit breakers, bulkheads
Part 9Deployment and scaling
-
19Level 2
Deployment patterns and Kubernetes
Problem: Release night does not scale
Answer: Containers, Kubernetes, IaC, progressive delivery -
20Level 3
Serverless deployment
Problem: Running servers you do not want to run
Answer: Functions as a service and their limits -
21Level 2
Continuous integration and delivery pipelines
Problem: Integrating late breaks the build
Answer: CI, trunk-based development, build once, promote -
22Level 3
Scaling microservices
Problem: The lunch rush overloads FTGO
Answer: The axes of scale, caching, autoscaling