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

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

主站蜘蛛池模板: 若尔盖县| 晋州市| 洛隆县| 南平市| 孝昌县| 鹿邑县| 海晏县| 桐梓县| 余干县| 大余县| 成武县| 乌苏市| 高陵县| 仲巴县| 甘孜县| 长寿区| 涞源县| 鹿邑县| 连山| 桦川县| 马边| 改则县| 岚皋县| 上栗县| 岚皋县| 彩票| 周口市| 运城市| 湘潭县| 汾西县| 禄劝| 合川市| 江阴市| 鹤岗市| 治多县| 惠安县| 驻马店市| 邯郸市| 阳信县| 万源市| 于都县|