Chapter 4: Inter-Process Communication and Messaging
Microservice architecture is a trend that has emerged with the recent growth of cloud application technology. Microservice architecture is built by combining small service components. These services should be able to communicate with each other and external services to provide the final output. Communication, therefore, is a key component of cloud native technology that needs a lot of focus and attention.
In this chapter, we will discuss how to use different types of communication protocols with the Ballerina language. We will learn how to find service endpoint connection URLs with service discovery, using different types of synchronous communication methods, such as GraphQL, WebSocket, gRPC, and asynchronous communication protocols such as RabbitMQ and Kafka.
The following is the list of the main topics that we are going to discuss in this chapter:
- Communication between services in a microservice architecture
- Synchronous...