Microservices & Service Architecture book cover

Your technical library

Microservices & Service Architecture

9 modules · 61 topics

About this book
Concepts · Microservices & Service Architecture

Microservices & Service Architecture

This is the library's microservices course. It teaches what the word covers — where a service boundary goes, how services call each other, what a contract between them promises, who owns each piece of data, how an operation that spans several services survives a crash, and how a monolith is split while it keeps running — and it teaches it honestly, so the answer is often "a module, not a service". Each slogan the subject is usually learned as — "just use gRPC", "put GraphQL in front", "use a saga" — is replaced with the mechanism, its failure mode and the quantity that decides whether to use it. It assumes no experience of building services: every term is explained where it first appears or linked to the lesson that teaches it, and the depth aims past what a senior staff engineer is expected to know. It builds on System Design, PostgreSQL, DBMS and Computer Networking.

Modularity and coupling gives criteria for where any boundary belongs. Service communication follows the boundary onto the network: what a remote call hides and what it cannot, gRPC on HTTP/2, REST, GraphQL, finding service instances, the service mesh, and services that talk through events instead of calls. Service boundaries: monolith or microservices then decides which boundaries deserve a network at all: what a microservice is, bounded contexts, data ownership and read models, and the modular monolith. Contract evolution and API semantics for distributed clients keep a contract stable while everything behind it changes — compatibility, versioning, errors, pagination, idempotency and webhooks.

Long-running workflows runs multi-step business processes across services with outboxes, sagas and durable execution, and migrating live systems changes schemas, data stores and whole systems without stopping them. Multi-tenancy serves many customers from one fleet, and architectural decisions closes with how decisions are recorded, sequenced and paid for — ending with one service extracted from a monolith, end to end.

61 topics across 9 modules, in dependency order.

61 of 61 topics are authored. Read in dependency order. Each topic opens with the problem it inherits and closes with what it leaves open. Planned lessons are labelled and excluded from progress; references cover authored material.

Course map

Read at your own pace. Each topic is one continuous page; mark it done as you finish.

Start with 01.1 · Information hiding: decompose by what is likely to changeReview what you have finished