Summary
In this chapter, we started off by discussing the ways of establishing communication between services. We discussed the use of the message broker technique to achieve asynchronous communication and used Azure Event Hubs with the Kafka protocol.
We set up Azure Event Hubs using the ARM template and created two topics for job requests and notifications, respectively. We developed a background service in .NET Core using the .NET Core hosted service model and used the Confluent library to connect with Azure Event Hubs and listen to Kafka topics. Then, we modified the Node.js and Java APIs to support publishing events to respective Kafka topics.
Lastly, we explored how Dapr can provide us with various building blocks to accommodate different scenarios and looked at an alternative way of communicating to other services running alongside Dapr and publishing messages using output binding.
In the next chapter, we will develop a frontend SPA (single-app application) in Angular...