O'Reilly logo

Microservices in .NET Core: with examples in Nancy by Christian Horsdal Gammelgaard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required