Loosely coupled services: Event producers and consumers are not coupled. There are several advantages of event-driven programming, including: When the item is shipped, a “Shipping” service creates an event that is consumed by the “Communication” service, which sends a message with information such as package tracking number, date it shipped, and date it is expected to be delivered. If the item is out of stock, the “Communication” service lets the consumer know that they can wait for the item to be in stock or cancel the order. If the item is in stock, an event is created and consumed by the “Communication” service, which sends a message letting the customer know that the order is being processed and another message will be sent when it is shipped. The “Stock” service checks to see if the item is in stock. That event determines which actions should be taken by any service after the event occurs.įor the event to trigger the correct response, an event-driven system follows three key components: event producers, event routers, and event consumers.Įvent producer: A customer places an order on an ecommerce site creating a “Check Out” event that is sent to an event router.Įvent router: Makes the event available to event consumers that subscribe to “Check Out” type events.Įvent consumers: Services such as “Stock” and “Communication.” For example, think about placing an order on an ecommerce site. What is event-driven architecture?Įvent-driven architecture (EDA) is an application development design used to respond to an “event” in real time or as close to it as possible. In this article, we’ll cover how event-driven architecture can help your teams develop applications to track and synthesize data. Did you know that every day we produce 2.5 quintillion bytes of data (that’s a one followed by 18 zeros)? To process and track all of this data, organizations need flexible applications that can adapt to changes, keep users engaged, and provide instant insights.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |