Benefits of event-driven architecture
EDA can assist an organization to obtain an edge over its competitors. This edge stems from the benefits that the pub/sub model can provide. Some of the benefits are explained in the following sub-sections.
No more polling
The publish and subscribe model delivers the benefit of real-time events through a "push" delivery mechanism. It eliminates the need to constantly be fetching sources to see whether data has changed. If you use a polling mechanism, you will either waste resources by checking for changes when no changes have occurred, or you will delay actions if changes occur when you haven't polled. Using a "push" mechanism minimizes the latency of message delivery. Depending on your application, delays in message delivery could translate into a loss of millions of dollars.
Example: Let's say you have a trading application. You want to buy a stock only when a certain price is reached...