5 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
  • Deploying collaborating microservices to Kubernetes

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 tradeoffs between them allows you to pick the appropriate one for each microservice collaboration. ...

Get Microservices in .NET, Second Edition 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.