官术网_书友最值得收藏!

Introducing the booking service

In this section, we will start by implementing a publish/subscribe architecture using RabbitMQ. For this, we will need new microservices to our architecture—the booking service will handle bookings for events. Its responsibilities will include making sure that events are not overbooked. For this, it will need to know about existing events and locations. In order to achieve this, we will modify the EventService to emit events whenever a location or an event was created (yes, the terminology is confusing—make sure not to mistake the notification that something has happened kind-of-event with the Metallica is playing here kind-of-event). The BookingService can then listen to these events and emit events itself whenever someone books a ticket for one of these events.

An overview of our microservices and the events that they will be publishing and subscribing to

主站蜘蛛池模板: 嵩明县| 濮阳市| 吉安县| 锡林郭勒盟| 永靖县| 和田县| 砀山县| 平乡县| 固原市| 桑植县| 原平市| 嵊州市| 兴文县| 双辽市| 洞口县| 嘉峪关市| 苏尼特左旗| 佛山市| 荃湾区| 广宗县| 鄂尔多斯市| 昭觉县| 嘉峪关市| 治多县| 永登县| 阿瓦提县| 泸溪县| 汝南县| 淄博市| 建阳市| 江源县| 锦屏县| 开平市| 五原县| 天水市| 若尔盖县| 台江县| 卢湾区| 突泉县| 清水县| 罗源县|