Spring Cloud Session-4 Inter Microservice Communication ASynchronous using Kafka
Автор: Balaji Sankar Chopparapu
Загружено: 2020-09-18
Просмотров: 3986
In this tutorial we are going to learn how microservices communicate with each other in asynchronous fashion. In asynchronous communication calling microservice will not wait till the called microservice responds. This pattern can be achieved with message bus infrastructures like Kafka.Here we use Spring Cloud Stream framework to communicate with message bus.
Overview
When report-api microservice receives a request to get employee details it is going to fetch details and write results to message bus.
Mail microservice listens on the bus for employee details and when those details are available on bus. It is going to read send SMS and email.
report-api play a role of Producer
mail-client microservice plays a role of Consumer
Kafka play a role of mediator or message bus
https://github.com/balajich/spring-cl...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: