An integration flow is an automated workflow used to synchronize data between multiple applications or services. Typically a flow consists of following:
Components: An integration component is a small application specialized on retrieving/storing objects from/to a service such as Salesforce, Quickbooks, SAP, etc. Every step in a flow contains a component which consumes input, connects a service, produces output.
Trigger: A trigger is the first step in any flow.
Actions: Every step in the flow after the trigger is an action. It transforms or otherwise actions the data taken by the trigger.
Every flow starts with a single Trigger that takes data from an external source and produces ouptut to be used by the next step in the flow. The trigger is the single source of data for a flow.
All of the other steps in a flow are used to transform that data, and action it. These actions may include sending data to other components, sending emails or simple HTTP responses.
The following diagram shows a single Trigger resulting in multiple actions.
For example the flow above may represent something the the following:
Trigger: a webhook is used to get data from a web form (e.g. a customer registers interest in a service)
Action 1: the data is transformed so that it can be pushed to a CMS
Action 2: The data is pushed to the CMS
Action 3: An email is sent to inform a key group that new data has been added to the CMS
The data produced by a trigger component are sent to an action component for transformation or consumption. For example, a new object from Salesforce may be sent straight to Quickbooks for insertion or update, or it may be sent to an intermediate Action component such as a Transformation to reformat the data so that Quickbooks can accept it.
After consuming the incoming data, an action may produce further new data which can be consumed by the next action.
Each step of an integration flow runs as an individual Docker container. These containers are connected through a messaging queue, as shown in the following diagram:
This architecture has a number of advantages:
Data are never lost if any of the containers crashed
Vontainers can be scaled if we need to parallelise the work, e.g. in the diagram above we have 2 instances of Step 2 running
Reliable message delivery between containers, e.g. when the target API is unavailable the platform can easily retry later as the messages remain on the queues