ArticleslgStudy

computer science

Event-driven SOA

Event-driven SOA is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Event-driven SOA rather than just read about it. In short: Event-driven SOA is a form of service-oriented architecture (SOA), combining the intelligence and proactiveness of event-driven architecture with the organizational capabilities found in service offerings. Before event-driven SOA, the typical SOA platform orchestrated services centrally, through pre-defined business processes, assuming that what should have already been triggered is defined in a business process.

Key takeaways

  • Event-driven SOA belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Event-driven SOA to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Event-driven SOA from memory before moving on to harder problems.

Reference excerpt

Event-driven SOA is a form of service-oriented architecture (SOA), combining the intelligence and proactiveness of event-driven architecture with the organizational capabilities found in service offerings. Before event-driven SOA, the typical SOA platform orchestrated services centrally, through pre-defined business processes, assuming that what should have already been triggered is defined in a business process. This older approach (sometimes called SOA 1.0) does not account for events that occur across, or outside of, specific business processes. Thus complex events, in which a pattern of activities—both non-scheduled and scheduled—should trigger a set of services, are not accounted for in traditional SOA 1.0 architecture.

SOA 2.0 SOA 2.0 architecture ("event-driven SOA") lets business users monitor, analyze, and enrich events to make connections among disparate events that are not at first intuitively obvious. This makes these enriched events visible to others, especially business analysts or marketing directors, and can also allow the SOA 2.0 system to automate actions that address a unique pattern. SOA 2.0 is the ability to create high-level business events from numerous low-level system events. Events are created by filtering real-time data (from middleware, applications, databases, and Web services, for example) and infusing it with defining detail such as dependencies or causal relationships discovered by correlating other events. If it is clear, through the enriched events that are produced by an SOA 2.0 environment, that the customer shopping cart abandonment rate has escalated in the last few days, a notification to the marketing department could initiate research into what competitors have done to cause customers to buy products elsewhere, such as whether there was a common product in most shopping carts and, if so, what prices the competition was offering. In practice, this relationship of streamed events is processed through a causal vector engine, which performs a lookup based on recently viewed events and assigns a causal vector to an event if a relationship is discovered. If A causes B, the causal vector engine checks if B’s causal vector rule index contains a reference to A. The engine may handle events for different transactions simultaneously, perhaps in a different order than they occurred. Unlike sequential or procedural systems (in which clients must poll for change requests), event-driven SOA allows systems and components to respond dynamically, in real time, as events occur. SOA 2.0 complements and extends SOA 1.0 by introducing long-running processing capabilities. Long- running processing capability enables the architecture to collect various asynchronous events over a long period of time and correlate these events into causal relationships. SOA 2.0 event patterns can be designed and implemented to look for event relationships that span days, weeks, or months, and to trigger a business process to address the event pattern when certain criteria are met. SOA 2.0 event-driven programming is structured around the concept of decoupled relationships between event producers and event consumers: an event consumer is not concerned with where or why an event occurs, but only with being invoked when the event has occurred. Systems and applications that separate event producers from event consumers typically rely on an event dispatcher, or channel. This channel contains an event queue that acts as an intermediary between event producers and event handlers.

Prototypical SOA 2.0 paradigm The prototypical SOA 2.0 paradigm contains four essential elements:

multiple low-level system events that, separately, do not appear to have any relationship, but through pattern detection by comparing these many events some unusual or less obvious correlation becomes clear; some amount of data enrichment by infusion of related information to each event to more clearly illustrate how the many events are related; a trigger condition which when not met, the business-level event is not created, but when the trigger condition is met, the higher-level business event is created; some human or automated process that is invoked when the trigger event is reached. SOA 2.0 Web Services can be composed in two ways: orchestration and choreography. In orchestration, a central process takes control over the involved web services and coordinates the execution of different operations on the web services involved in the operation. The involved SOA 2.0 services do not know (and do not need to know) that they are part of a composition or a higher business process. Only the central coordinator of the orchestration knows this, so the orchestration is centralized with explicit definitions of operations and the order of invocation of SOA 2.0 services. Choreography, on the other hand, does not rely on a central coordinator. Rather, each SOA 2.0 service involved in the choreography knows exactly when to execute its operations (based on defined trigger criteria) and whom to interact with. Choreography is a collaborative effort focused on exchange of messages. All participants of the choreography need to be aware of the business process, operations to execute, messages to exchange, and the timing of message exchanges. BPEL follows the orchestration paradigm. Choreography is covered by other standards, such as WSCI (Web Services Choreography Interface) and WS-CDL (Web Services Choreography Description Language).

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Event-driven SOA

Start with the simplest possible case. Write down what Event-driven SOA claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Event-driven SOA before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Event-driven SOA ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Event-driven SOA

In research
Event-driven SOA appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Event-driven SOA in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Event-driven SOA is common in secondary-school and first-year university syllabi. It links to neighbouring topics Enterprise application integration, Service-oriented (business computing), Web services, so understanding it makes those chapters shorter.
In everyday life
Look for Event-driven SOA outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Event-driven SOA” →

How to study Event-driven SOA in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Event-driven SOA means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Event-driven SOA out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Event-driven SOA in simple terms?

Event-driven SOA is a form of service-oriented architecture (SOA), combining the intelligence and proactiveness of event-driven architecture with the organizational capabilities found in service offerings. Before event-driven SOA, the typical SOA platform orchestrated services centrally, through pr…

Why does Event-driven SOA matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Event-driven SOA?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Event-driven SOA.

Tags

  • Enterprise application integration
  • Service-oriented (business computing)
  • Web services

Keep exploring