Chained Event-Driven Integration
Feature Overview
During the design of the Qeasy DataHub platform, we repeatedly encountered a category of requirements where business events do not happen in isolation but must sequentially trigger a chain of actions. For example, after an order is created, it may need to flow through "sync to ERP → deduct inventory → generate shipment → notify customer service." Manually stitching these steps together makes timeliness hard to guarantee and error handling extremely complicated.
Chained Event-Driven is an orchestration capability built precisely for this. It treats an event as the smallest scheduling unit, allowing users in Qeasy DataHub to connect multiple data integration nodes into a directed acyclic graph. Each time a preceding node successfully produces a business event, the platform automatically schedules the subsequent node for execution. This "predecessor triggers successor" mechanism essentially transforms a traditional batch pipeline into a real-time, observable, and replayable event stream.
From an architectural standpoint, Chained Event-Driven does not rely on external message brokers. Event payloads are uniformly persisted on the platform's internal event bus, and every node acts as both a consumer and a producer. This lowers onboarding friction and guarantees that events are not lost, not duplicated, and processed in order.
Use Cases
The typical use cases include the following:
-
Cross-system order fulfillment chain: When the upstream trading system emits an "Order Created" event, it automatically drives the downstream ERP to record the order, the inventory system to deduct stock, and the logistics system to generate an outbound document. The entire chain requires no manual intervention, and any node failure is captured precisely.
-
Master data cascade synchronization: When synchronizing master data such as products, customers, and suppliers across multiple business systems, downstream writes usually depend on field-mapping results from upstream. Chained Event-Driven ensures that downstream writes happen only after fields are processed, preventing dirty data from spreading.
-
Asynchronous notifications in approval flows: After an approval node completes, emails, IM notifications, and follow-up document generation must be triggered. Chained triggering lets notifications and downstream writes complete within the same transaction observation window.
-
Bridging IoT and business systems: Sensor data reported by devices must be cleaned before triggering threshold alerts and being written into business systems. Chained Event-Driven decouples data cleansing from alert writing while preserving order.
Configuration Guide
In the DataHub console, the configuration of Chained Event-Driven is organized into three layers:
1. Define the trigger source node Create a new integration node, set its "Trigger Mode" to "Event-Triggered," and specify an event topic. This step determines the entry point of the entire chain.
2. Link downstream processing nodes On the node canvas, drag the "Event Outlet" of an upstream node onto the "Event Inlet" of a downstream node to establish an event chain. One-to-many fan-out is supported, and routing can also be implemented through conditional branches.
3. Configure execution strategies
- Retry policy: Configurable maximum retry count and retry interval, defaulting to exponential backoff.
- Breakpoint resume: When a node fails and is fixed, users can manually replay from that node without rerunning the entire chain.
- Concurrency control: The concurrent execution count for a single chain can be limited to prevent the downstream system from being overwhelmed instantly.
- Timeout: Configurable per node to prevent long-running transactions from blocking the chain.
After saving and publishing, the chain enters the running state. All chain execution records can be viewed on the "Event Tracing" page, including the event payload, execution duration, and final status of every hop.
Cautions
- Chained Event-Driven requires all participating nodes to be "event reachable"; nodes that are triggered purely by schedule cannot join a chain.
- Avoid introducing irreversible operations that change the event payload structure within a chain, otherwise downstream nodes may encounter missing fields. It is recommended to consolidate field processing into dedicated nodes.
- The total number of hops in a chain should not be too large (recommended not to exceed 12). Excessively deep chains significantly increase troubleshooting difficulty and end-to-end latency.
- When enabling breakpoint resume, ensure that downstream nodes are idempotent; otherwise duplicate writes may occur.
- Once a chain is triggered, it will keep progressing. Avoid debugging node logic directly on production chains. Please verify changes in a sandbox environment before publishing.