15

Asynchronous Communication with Messages and Events

In the previous chapter, we updated our services using binary communication. However, some services don’t need connected services: the client and the server do not need to be connected at the same time, which means communication can be done asynchronously. This communication can be done by sending messages to a queue or publishing events.

In this chapter, we’ll use Azure services for asynchronous communication – that is, Azure Queue Storage and Azure Event Hubs. We’ll also use Apache Kafka as an alternative option.

You’ll learn how to do the following:

  • Differentiate message queues and events
  • Send and receive messages using a queue
  • Publish and subscribe events with Azure Event Hubs
  • Use Apache ...

Get Pragmatic Microservices with C# and Azure 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.