Skip to main content

Usage patterns

Integration needs boil down to a small number of patterns: a trigger, a workflow, and the target system. Recognizing the pattern that matches your need avoids reinventing the workflow structure. For configuration details, see Triggers and Workflows.

When to use what​

PatternTriggerTypical use case
SchedulerSchedulerPeriodic synchronizations, batches
File importFileData imports from files
EventsAPI route / EventsReal-time reactions
API exposureAPI routeCreating calculation APIs

Choosing according to your need​

NeedRecommended pattern
Periodic synchronizationScheduler
Partner file importsFile import
Real-time reactionEvents
Simple calculation APIAPI exposure
Large batch volumesScheduler or File import
Routing to different systemsEvents with Switch

Pattern 1: Scheduler (CRON)​

Triggers a workflow at regular intervals defined by a CRON expression.

Diagram​

Variant with parameters​

Use cases​

Use caseCRONDescription
Daily stock sync0 6 * * *Synchronize ERP → E-commerce every morning
Weekly export0 2 * * 1Export to a partner every Monday
API polling*/5 * * * *Check for new orders every 5 min

Advantages of the pattern:

  • Flexible configuration (CRON expressions)
  • Predictable and traceable executions
  • Independent of source/target systems

Pattern 2: File Import​

Triggers a workflow when a file is dropped (upload, SFTP, or email).

Diagram — Whole File Mode​

Diagram — Row by Row Mode​

Processing interval

If the target system cannot absorb the rows at maximum speed, set a processing interval between rows.

Use cases​

Use caseModeDescription
Catalog importWhole fileDaily import of a CSV of 50,000 products
Price updateRow by rowEach row triggers an API update
EDI importWhole fileReceiving partner XML files

Pattern 3: Event Reception​

Reacts in real time to events (webhooks, API endpoints, Pub/Sub).

Diagram — With Switch routing​

A single entry point, multiple processings: splitting by case limits the complexity of a workflow that must react to several types of events — see the Switch node.

Diagram — Simple real time​

Latency of the order of a few seconds between the event and the processing.

Use cases​

Use caseTriggerDescription
Order → ERPWebhookAutomatic creation for each order
Stock → E-commerceEventReal-time synchronization
Payment → NotificationWebhookConfirmation email

Pattern 4: API Exposure​

Creates HTTP endpoints for calculations or aggregations without storage.

Diagram — Simple calculation​

Diagram — Multi-source aggregation​

No storage, on-the-fly calculation: the API can be called by any system.

Use cases​

Use caseMethodDescription
Shipping cost calculationGETCalculation based on weight and destination
Customer 360° viewGETAggregation CRM + ERP + Support
Data validationPOSTValidity check

Go further​


See also: Best practices