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

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

主站蜘蛛池模板: 元朗区| 盘锦市| 方城县| 化德县| 长海县| 万盛区| 清丰县| 苏尼特右旗| 中阳县| 仁怀市| 鸡泽县| 温州市| 苍南县| 措美县| 秦皇岛市| 甘孜县| 旬阳县| 桃园市| 舟山市| 利津县| 项城市| 云南省| 车险| 本溪市| 寻甸| 宁陕县| 隆化县| 广平县| 得荣县| 蕲春县| 永顺县| 宝丰县| 泰来县| 达拉特旗| 专栏| 祁东县| 湄潭县| 姜堰市| 准格尔旗| 景宁| 武胜县|