Chapter 4. Microservice collaboration

This chapter covers

  • Understanding how microservices collaborate through commands, queries, and events
  • Comparing event-based collaboration with collaboration based on commands and queries
  • Implementing an event feed
  • Implementing command-, query-, and event-based collaboration

Each microservice implements a single capability; but to deliver end user functionality, microservices need to collaborate. Microservices can use three main communication styles for collaboration: commands, queries, and events. Each style has its strengths and weaknesses, and understanding the trade-offs between them allows you to pick the appropriate one for each microservice collaboration. When you get the collaboration style ...

Get Microservices in .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.