Microservices
Microservices
Flexible Software Architectures
About the Book
A Microservices Architecture divides software systems in many small services that can be deployed independently. Every team is working on its own Microservices and is thereby decoupled from other teams. That allows to easily scale agile processes. The modularization into Microservices protects the system against the decay of the architecture. So systems based on Microservice stay maintainable in the long term. In addition, legacy systems can be migrated into Microservices without changing the legacy code. And Continuous Delivery is easier to implement in Microservice systems.
Eberhard Wolff's book offers a comprehensive introduction to Microservices. It covers:
- Advantages and disadvantages of the Microservice approach
- Microservices vs. SOA (Service-oriented Architecture)
- The architecture of Microservice-based systems
- The architecture of individual Microservices
- Impact on project organization, operation, testing and deployment
- Nanoservices
The book explains technology-neutral concepts and architectures that can be implemented with various technologies. As an example a concrete Java technology stack is shown with Spring Boot, the Netflix stack and Spring Cloud.
On the basis of many examples and concrete scenarios you will learn how Microservices can be used as effective as possible. You'll also get suggestions to deepen what you have learned through your own experiments.
Audience
- Software Developers
- Software Architects
- Technical Project Manager
- Ops and DevOps engineers
Status
The book is translated from German. See http://microservices-buch.de for the German version. The sample contains chapter 1, 2 and parts of 4 which give a good introduction into the book.
Website
The book has a website at http://microservices-book.com
Reader Testimonials

Matthias Fritschi
Surprisingly, the best book on Microservices is in German: "Microservices" by @ewolff (about the original German version) http://bit.ly/22HatRp

Peter Storch
For IT topics I usually prefer English literature, but I really recommend "Continuous Delivery" and "Microservices" by @ewolff. (about the original German version) http://bit.ly/1kFWRn2
Table of Contents
-
-
1 Preface
- 1.1 Overview of Microservice
- 1.2 Why Microservices
- Part I: Motivation and Basics
-
2 Introduction
- 2.1 Overview of the Book
- 2.2 For Whom is the Book Meant?
- 2.3 Chapter Overview
- 2.4 Essays
- 2.5 Paths Through the Book
- 2.6 Acknowledgment
-
3 Microservice Scenarios
- 3.1 Modernizing an E-Commerce Legacy Application
- 3.2 Developing a New Signaling System
- 3.3 Conclusion
- Part II: Microservices: What, Why and Why Not?
-
4 What are Microservices?
- 4.1 Size of a Microservice
- 4.2 Conway’s Law
- 4.3 Domain-Driven Design and Bounded Context
- Why You Should Avoid a Canonical Data Model (Stefan Tilkov)
- 4.4 Microservices with UI?
- 4.5 Conclusion
-
5 Reasons for Microservices
- 5.1 Technical Benefits
- 5.2 Organizational Benefits
- 5.3 Benefits from a Business Perspective
- 5.4 Conclusion
-
6 Challenges
- 6.1 Technical Challenges
- 6.2 Architecture
- 6.3 Infrastructure and Operations
- 6.4 Conclusion
-
7 Microservices and SOA
- 7.1 What is SOA?
- 7.2 Differences Between SOA and Microservices
- 7.3 Conclusion
- Part III: Implementing Microservices
-
8 Architecture of Microservice based Systems
- 8.1 Domain Architecture
- 8.2 Architecture Management
- 8.3 Techniques to Adjust the Architecture
- 8.4 Growing Microservice based Systems
- Don’t Miss the Exit Point or How to Avoid the Erosion of a Microservice (Lars Gentsch)
- 8.5 Microservices and Legacy Applications
- Hidden Dependencies (Oliver Wehrens)
- 8.6 Event-driven Architecture
- 8.7 Technical Architecture
- 8.8 Configuration and Coordination
- 8.9 Service Discovery
- 8.10 Load Balancing
- 8.11 Scalability
- 8.12 Security
- 8.13 Documentation and Metadata
- 8.14 Conclusion
-
9 Integration and Communication
- 9.1 Web and UI
- 9.2 REST
- 9.3 SOAP and RPC
- 9.4 Messaging
- 9.5 Data Replication
- 9.6 Interfaces: Internal and External
- 9.7 Conclusion
-
10 Architecture of Individual Microservices
- 10.1 Domain Architecture
- 10.2 CQRS
- 10.3 Event Sourcing
- 10.4 Hexagonal Architecture
- 10.5 Resilience and Stability
- 10.6 Technical Architecture
- 10.7 Conclusion
-
11 Testing Microservices and Microservice-based Systems
- 11.1 Why Tests?
- 11.2 How to Test?
- 11.3 Mitigate Risks at Deployment
- 11.4 Testing the Overall System
- 11.5 Testing Legacy Applications and Microservices
- 11.6 Testing Individual Microservices
- 11.7 Consumer-driven Contract Tests
- 11.8 Testing Technical Standards
- 11.9 Conclusion
-
12 Operations and Continuous Delivery of Microservices
- 12.1 Challenges Associated with the Operation of Microservices
- 12.2 Logging
- 12.3 Monitoring
- 12.4 Deployment
- Combined or Separate Deployment? (Jörg Müller)
- 12.5 Control
- 12.6 Infrastructure
- 12.7 Conclusion
-
13 Organizational Effects of a Microservices-based Architecture
- 13.1 Organizational Benefits of Microservices
- 13.2 An Alternative Approach to Conway’s Law
- 13.3 Micro and Macro Architecture
- 13.4 Technical Leadership
- 13.5 DevOps
- When Microservices Meet Classical IT Organizations (Alexander Heusingfeld)
- 13.6 Interface to the Customer
- 13.7 Reusable Code
- 13.8 Microservices Without Changing the Organization?
- 13.9 Conclusion
- Part IV: Technologies
-
14 Example for a Microservices-based Architecture
- 14.1 Domain Architecture
- 14.2 Basic Technologies
- 14.3 Build
- 14.4 Deployment Using Docker
- 14.5 Vagrant
- 14.6 Docker Machine
- 14.7 Docker Compose
- 14.8 Service Discovery
- 14.9 Communication
- 14.10 Resilience
- 14.11 Load Balancing
- 14.12 Integrating Other Technologies
- 14.13 Tests
- Experiences with JVM-based Microservices in the Amazon Cloud (Sascha Möllering)
- 14.14 Conclusion
-
15 Technologies for Nanoservices
- 15.1 Why Nanoservices?
- 15.2 Nanoservices: Definition
- 15.3 Amazon Lambda
- 15.4 OSGi
- 15.5 Java EE
- 15.6 Vert.x
- 15.7 Erlang
- 15.8 Seneca
- 15.9 Conclusion
-
16 How to Start with Microservices
- 16.1 Why Microservices?
- 16.2 Roads towards Microservices
- 16.3 Microservice: Hype or Reality?
- 16.4 Conclusion
-
1 Preface
- Notes
The Leanpub 60-day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Do Well. Do Good.
Authors have earned$11,710,555writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
Recipes for Decoupling
Matthias NobackWrite software that survives
CQRS by Example
Carlos Buenosvinos, Christian Soronellas, and Keyvan Akbary- Leverage your Software Architecture skills by learning everything about CQRS in detail with lots of examples
- Develop faster applications by applying CQRS and fostering Read Models and Projections
- Learn how to apply CQRS into a brownfield project from a pragmatic approach
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Maîtriser Apache JMeter
Philippe Mouawad, Bruno Demion (Milamber), and Antonio Gomes RodriguesToute la puissance d'Apache JMeter expliquée par ses commiteurs et utilisateurs experts. De l'intégration continue en passant par le Cloud, vous découvrirez comment intégrer JMeter à vos processus "Agile" et Devops.
If you're looking for the newer english version of this book, go to Master JMeter : From load testing to DevOps
Functional Event-Driven Architecture
Gabriel VolpeExplore the event-driven architecture (EDA) in a purely functional way. Learn to design and develop distributed systems that scale. Identify common design patterns in such systems.
Take your functional programming skills to the next level by joining me in developing a distributed system powered by Apache Pulsar and Fs2 streams, all in Scala 3!
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
On Java 8
Bruce EckelBy the author of "Thinking in Java," covering version 8 of the Java programming language (with updates to Java 17). Intended for “dedicated beginners,” it doesn’t assume you know anything about programming and takes you through the material step-by-step. However, I assume you are able to figure things out. It’s not a “dummies” or “idiot’s” guide.
Jetpack Compose internals
Jorge CastilloJetpack Compose is the future of Android UI. Master how it works internally and become a more efficient developer with it. You'll also find it valuable if you are not an Android dev. This book provides all the details to understand how the Compose compiler & runtime work, and how to create a client library using them.
The C4 model for visualising software architecture
Simon BrownA guide to visualising your software architecture with the C4 model.
Top Bundles
- #1
Software Architecture
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #4
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #7
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #8
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #9
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming...