Software Engineering Professional

Book Profile

Building Microservices, 2nd Edition (Early Release, Raw and Unedited)

Sam Newman · 2021

A practitioner's guide to designing, building, and operating fine-grained distributed systems—microservices—that can be developed and deployed independently around business domains.

Get the book →

Building Microservices (2nd Edition) distills years of real-world experience into a comprehensive, opinionated guide to service-oriented architectures done well. Sam Newman shows how to draw stable service boundaries around business domains using information hiding, coupling, and cohesion; how to choose communication styles (synchronous vs asynchronous, request-response vs event-driven) and matching technologies (REST, gRPC, GraphQL, message brokers); how to coordinate multi-service workflows with sagas rather than distributed transactions; and how to build, deploy, and progressively release microservices using CI/CD, containers, Kubernetes, and FaaS. Rather than treating microservices as a fashionable default, the book frames them as an architectural choice that 'buys you options' at a cost—flexibility in technology, scaling, robustness, and organizational alignment, offset by the complexity of distributed systems. It's essential reading for architects and developers who want the benefits of independent deployability without falling into the trap of a distributed monolith.

What it argues

A causal model linking architectural and organizational design levers (boundary design, information hiding, isolation, automation) through psychological/behavioral and structural states (coupling, cohesion, temporal coupling, developer productivity) to outcomes such as independent deployability, robustness, scalability, and delivery speed.

Key ideas it contributes