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

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

主站蜘蛛池模板: 兰溪市| 夏邑县| 莫力| 东莞市| 罗平县| 万源市| 开江县| 泸水县| 亚东县| 岳池县| 哈尔滨市| 呼和浩特市| 闵行区| 通榆县| 望都县| 隆子县| 西充县| 依兰县| 进贤县| 河源市| 绩溪县| 通道| 上虞市| 兴安盟| 莱阳市| 广州市| 延川县| 阳春市| 仙居县| 德昌县| 阿尔山市| 阜南县| 南安市| 资兴市| 垦利县| 潍坊市| 于都县| 全椒县| 河曲县| 深水埗区| 罗源县|