Vivid Headlines

Managing complexity: Event-driven architecture explained | TechTarget


Managing complexity: Event-driven architecture explained | TechTarget

It's important to understand the key elements that compose an event-driven architecture and the diverse approaches that can be deployed to achieve automation and extensibility. Organizations can then better determine whether EDA is the right option for handling the volume, velocity and variable nature of today's data sources and systems.

Event-driven architecture is a software design framework that structures how decoupled components respond to and process user-, sensor- or system-driven events in real time. Within EDA environments, individual services are designed and configured to perform asynchronously and execute one hyperspecific task, ensuring that application components and system events function independently.

The services communicate through a messaging backbone that can employ a traditional pub/sub approach or distributed log, with the two methods often existing side by side. For example, when purchasing an item on an e-commerce platform, an order processing microservice can contact a payment microservice using specific API calls at checkout. These decoupled components -- the event producer and event consumer -- enable the rapid responses and independent scaling that constitute e-commerce today.

The three central components of an event-driven architecture include the event producer, event bus and event consumer.

An event producer generates an event based on an action or change in a system. It is then transmitted to the rest of an application by way of an event bus. A customer making a bank account transaction is an example of an event, one that triggers security actions and account balance checks to handle the specific event in real time.

Event transmission and processing are key aspects of an event-driven architecture. The event bus functions as a hub that enables events to be shared among different components within an environment.

Useful tools for event processing include Apache Kafka, a highly scalable, fault-tolerant platform for handling trillions of events per day, and RabbitMQ, which offers easy deployment, real-time monitoring and high availability. Both messaging systems ensure that events are received, broadcasted and ready to be processed.

Event consumers are system components that subscribe to specific broadcasts and generate dynamic responses based on the event they receive. Asynchronous processing is essential so that components don't need to wait to respond after receiving an event notification.

Previous articleNext article

POPULAR CATEGORY

entertainment

11282

discovery

5063

multipurpose

11887

athletics

11669