WIPIVERSE All articles

Event-driven SOA

Event-driven SOA (Service-Oriented Architecture) is a form of service-oriented architecture that combines the intelligence and proactiveness of event-driven architecture with the organizational capabilities found in service offerings. It is also referred to as SOA 2.0 in some contexts. The concept integrates the request-and-response paradigm of traditional SOA with the publish-and-subscribe model of event-driven architecture.

Background and Rationale

Traditional SOA platforms (sometimes called SOA 1.0) orchestrate services centrally through pre-defined business processes, assuming that what should be triggered is already defined within a business process. This older approach does not account for events that occur across or outside of specific business processes. Complex events—in which a pattern of activities, both scheduled and non-scheduled, should trigger a set of services—are not accounted for in traditional SOA 1.0 architecture.

Event-driven SOA was developed to address this limitation by allowing systems and components to respond dynamically, in real time, as events occur, rather than requiring clients to poll for change requests.

Key Characteristics

Event-driven SOA lets business users monitor, analyze, and enrich events to make connections among disparate events that do not at first appear to be intuitively obvious. It enables the creation of high-level business events from numerous low-level system events. Events are created by filtering real-time data from sources such as middleware, applications, databases, and Web services, and infusing them with defining detail such as dependencies or causal relationships discovered by correlating other events.

The architecture is structured around the concept of decoupled relationships between event producers and event consumers. An event consumer does not care where or why an event occurs; rather, it is concerned that it will be invoked when the event has occurred. Systems that separate event producers from event consumers typically rely on an event dispatcher or channel, which contains an event queue that acts as an intermediary.

Prototypical Paradigm

The prototypical event-driven SOA paradigm contains four essential elements:

  1. Multiple low-level system events that, separately, do not appear to have any relationship, but through pattern detection some unusual or less obvious correlation becomes clear.
  2. Data enrichment by infusion of related information to each event to more clearly illustrate how the many events are related.
  3. A trigger condition which, when not met, prevents the business-level event from being created, but when met, creates the higher-level business event.
  4. A human or automated process that is invoked when the trigger event is reached.

Service Composition

Event-driven SOA Web services can be composed in two ways:

  • Orchestration: A central process takes control over the involved Web services and coordinates the execution of different operations. The involved services do not know they are part of a composition or higher business process. BPEL (Business Process Execution Language) follows the orchestration paradigm.
  • Choreography: Does not rely on a central coordinator. Each service involved knows exactly when to execute its operations based on defined trigger criteria and whom to interact with. Choreography is covered by standards such as WSCI (Web Services Choreography Interface) and WS-CDL (Web Services Choreography Description Language).

Relationship to Event-Driven Architecture

Event-driven SOA is one interaction between SOA and event-driven architecture (EDA). In this interaction, the occurrence of an event can trigger the invocation of one or many services, which may perform simple functions or entire business processes. In a second interaction, a service may generate an event that is immediately disseminated to all interested parties, who evaluate the event and optionally take action.

SOA and EDA are generally considered complementary rather than competing architectures. SOA uses the request-reply communication pattern when executing pre-defined processes and logic, while event-driven applications use the publisher/subscriber pattern, processing large amounts of events with the aim of creating fewer, new "actionable" events.

Applications

Event-driven SOA has been applied in various enterprise contexts, including real-time customer intelligence, marketing automation, customer loyalty solutions, fraud detection, supply chain management, and business activity monitoring. It has also been the subject of academic research, including the EDSOA (Event-Driven Service-Oriented Architecture) model proposed for enterprise applications, which combines component-based software development, event-driven architecture, and SOA.

See Also

  • Service-oriented architecture
  • Event-driven architecture
  • Complex event processing
  • Enterprise service bus
Browse

More topics to explore

    Browse all articles