O'Reilly logo
live online training icon Live Online training

Microservice Collaboration

Events, sagas, and schemas

Topic: System Administration
Sam Newman

You’ve probably seen plenty of box-and-arrow diagrams when looking at microservice architectures, but what’s behind those lines? Find out by joining Sam Newman in a hands-on three-hour course that explores the nature of service-to-service calls.

Since the array of technology choices in this space is vast, Sam begins by sharing a model for thinking of service-to-service collaboration. He then covers some of the technology choices that fit into this model, including newer interaction models enabled by Kafka and service meshes. You'll learn how to implement business processes through sagas—in other words, how to manage all those individual service calls and make them part of something more. Along the way, expect discussion about schemas, serialization formats, messaging patterns, and maybe even some BPM.

What you'll learn-and how you can apply it

By the end of this live, hands-on, online course, you’ll understand:

  • The nuances of the different styles of service-to-service communication
  • How to manage the collaboration of multiple services to implement cross-cutting business processes
  • Why picking the right technology can be key in helping avoid tight coupling between services

And you’ll be able to:

  • Better decide what sort of communication protocol works best for your use case
  • Understand why you may want to mix and match different styles of communication
  • Apply what you’ve learned to new technologies as they arise

This training course is for you because...

  • You need to make sense of all the different options out there for microservice architectures.
  • You work with asynchronous technology like Kafka and want to know how to get the best out of it.
  • You want to build architectures that don’t become tightly coupled distributed monoliths.


  • A basic understanding of microservices

Recommended preparation:

Recommended follow-up:

About your instructor

  • After spending time at multiple startups and 12 years at ThoughtWorks, Sam Newman is now an independent consultant. Specializing in microservices, cloud, and continuous delivery, Sam helps clients deliver software faster and more reliably through training and consulting. Sam is an experienced speaker who has given talks at conferences across the world and is the author of Building Microservices and Monolith to Microservices, both from O'Reilly.


The timeframes are only estimates and may vary according to how the class is progressing

From method calls to service calls (30 minutes)

  • Poll
  • Lecture: How method calls and service calls vary; performance and error handling; why mapping directly from method calls to service calls can be dangerous
  • Q&A

A model for microservices collaboration (45 minutes)

  • Poll
  • Lecture: Synchronous and asynchronous integration; request/response versus event-based collaboration; a model for selecting different technologies
  • Poll: What other technologies might you be interested in?
  • Break (10 minutes)

Breaking changes in a microservice architecture (30 minutes)

  • Poll
  • Lecture: How to roll out breaking contract changes while ensuring you have independent deployability; supporting ideas like schemes and consumer-driven contracts
  • Q&A
  • Break (10 minutes)

Sagas (45 minutes)

  • Lecture: Sagas—the answer to having lots of services collaborate to perform complex business processes; the generic saga pattern; how it can be implemented using a choreographed or orchestrated style

Wrap-up and Q&A (10 minutes)