Microservices for everyone
$24.95
Minimum price
$24.95
Suggested price

Microservices for everyone

About the Book

Microservices for everyone is a catalog of the major design choices you have to make when you're setting up a system of microservices. Amongst many things, you'll learn about asynchronous integration, independent deployability, continuous delivery, and immediate versus eventual consistency.

If you keep this book within reach, you should be able to safely navigate the daunting, yet wonderful world of microservices. Besides the basics, this book contains many references to further reading material.

Print edition

You can order physical copies of this book on Amazon US (also in UK and DE).

What people say about this book

"This book showed me what I needed to know to actually start playing with microservices. It had the right blend of why and how without too much focus on implementation details. Highly recommended!" - Beau Simensen

"A rich and concrete resource to accompany us in the DDD / Microservices adventure!" - Sébastien Grans

"Read, Learn, Succeed! A comprehensive and really complete guide for creating microservices from scratch! Matthias can abstract the topic complexity in this book that is really, for everyone." - Christophe Willemsen

"As Microservices become more and more popular each day, it's important for professional developers to familiarize themselves with the basic concepts. As with his previous books, Matthias explains these concepts well, in a clear and concise manner. His examples are useful, and the reader is presented with a solid introduction to using Microservices. Highly recommended!" - Mark Badolato

"An excellent book which tackles the complexity of microservice architecture and provides thorough explanations of the concepts behind it. All in a concise, yet very approachable manner!" - Kamil Kokot

  • Share this book

  • Categories

    • PHP
    • Docker
    • Messaging
    • Web Development
    • System Integration
    • Software Architecture
  • Feedback

    Email the Author(s)

About the Author

Matthias Noback
Matthias Noback

Matthias Noback has been building web applications since 2003. He is the author of Principles of Package Design and Object Design Style Guide and Advanced Web Application Architecture. He is a regular blogger, public speaker and trainer.

Table of Contents

  •  
    • Foreword
    • Preface
      • Scepticism
      • Optimism
      • Why I have to write this book
      • Design guidelines for this book
      • Rigor?
      • Ethics
      • Some meta-comments
      • Overview of the contents
    • Acknowledgments
    • Introduction
      • What is the promise of microservices?
      • The microservice maturity model
        • Modularized Microservice Architecture
        • Cohesive Microservice Architecture
        • Systematized Microservice Architecture
      • Taking a breath
  • Modularized microservice architecture
    • Independent deployability & Polyglotism
      • Introducing Docker Engine
      • Managing multiple containers with Docker Compose
        • Overriding Compose configuration
          • Environment variables
          • Volumes
          • Build configuration
      • Deploying containers with Docker Machine and Docker Swarm Mode
      • Setting the stage for a multi-service polyglot deployment
        • Docker Machine and Docker Compose
        • A quick project tour
        • Introducing Docker Swarm
        • Independent deployability—at last
          • Rolling updates
      • Conclusion
    • Testability and independent manageability
      • Improving the safety of change with Continuous Delivery
      • Continuous delivery with Docker in a microservice architecture
      • An example of a build pipeline for one microservice
        • Running the unit tests
        • Building the service image
        • Running the service tests
        • What else do we need in a build pipeline?
        • End-to-end tests
      • Conclusion
  • Cohesive microservice architecture
    • Communication styles
      • Integration requirements
      • Integration styles
        • File transfer
        • Shared database
        • Remote procedure invocations, or: service API integration
        • Messaging integration
      • Characteristics of integration solutions
        • Blocking versus non-blocking IO
        • Synchronous versus asynchronous protocols
        • Synchronous versus asynchronous integration
    • Implementation examples
      • The setup
      • Example: Synchronous integration, synchronous protocol, blocking IO
      • Intermediate example: Synchronous integration, mixed non-blocking IO
      • Example: Synchronous integration, fully non-blocking IO
      • The need for statelessness
      • Example: A circuit breaker for synchronous communication
        • A flaky service
      • The circuit breaker in action
        • Limitations
      • Example: Asynchronous integration, asynchronous protocol, blocking IO
        • Setting up RabbitMQ
        • The producer
    • Data and data formats
      • Introducing the example
      • Schema-less (de)serialization
      • Custom (de)serialization
      • Schema validation
      • Upcasting
      • Generated (de)serializers
        • Validation of values
    • Persistence
      • Mutable state
        • Anemic domain model
        • Rich domain model
        • Persisting mutable-state objects
        • Observations
          • Data loss
          • Identity generation
          • CRUD
      • Event sourcing
        • Event-sourced object design
        • Event-sourced persistence
      • Conclusion
    • Data locality
      • Fetching information when needed
        • REST
        • Caching HTTP responses
          • Client-side cache
          • Network-level cache
      • GraphQL
      • Get notified about new information
        • CQRS part I
          • Example 1: Filters
          • Example 2: Accumulations
        • Alternative setups
          • Notifications as RESTful resources
          • Streams
          • When you don’t want to send notifications
      • Conclusion
    • Service boundaries
      • Boundaries
      • Monolith first?
      • Bounded contexts
      • Finding service boundaries
        • Subdomains
        • Existing departments
        • Existing applications
        • Process stages
        • Team throughput
      • Independence requires alignment
      • Conclusion
    • Process management
      • Things that transcend service boundaries
      • Process managers
      • Conclusion
    • Consistency
      • State changes
      • Transactions
      • Aggregate design
        • Several ways to work with events
        • Dispatch events internally or always publish them too?
      • Eventual consistency
      • Conclusion—Programming in the fourth dimension
  • Conclusion
    •  
      • Opposition
      • Consider building a monolith
      • Opposites and trade-offs
    • Closing words
  • 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.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

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) and EPUB (for phones, tablets and 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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub