Data Flows and Integration Boundaries

Following information between systems: the seven data-flow questions, synchronous APIs, asynchronous messaging, batch files and database integration, the integration inventory, and where boundaries fail.

  • Intermediate to advanced
  • About 20 minutes
  • Includes an exercise and a knowledge check

The concept Follow the information

An enterprise workflow can fail even when every application looks healthy, because the problem lives between systems. A data flow describes how information moves from where it starts to where it is used. For every flow, ask:

  1. Who produces the information?
  2. What information is produced?
  3. How is it transmitted?
  4. Which system receives it?
  5. How is it validated?
  6. Where is it stored?
  7. What happens if processing fails?
The end-to-end payment data flow at Apex. A customer payment goes to a payment provider, which delivers it to the integration service by API call or as an event; the integration service validates and transforms it and calls loan servicing; reconciliation reads loan servicing and receives the bank settlement file. Solid lines are API calls, dashed lines are events or messages, dotted lines are file transfers. Validation or downstream failures go to a retry and dead-letter area and then to the exception workflow, as do unmatched records. Red markers show the boundaries where ownership, format or timing changes.
Every application can look healthy while the information between them is lost, late or duplicated.

Four patterns How systems exchange information

PatternHow it worksWhat to investigate
Synchronous APISystem A sends a request to B and waits for a replySuccess, validation and authentication errors, timeouts, server errors; was it rejected, never received, or done without a reply?
Asynchronous messagingA publishes an event; another system consumes it laterDuplicate and delayed delivery, out-of-order messages, failed consumers, retries, poison messages, replay
Batch and fileA writes a file; B processes it on a scheduleArrival time, format, completeness, record counts, duplicate, missing or partial files, reprocessing
Database integrationA reads B's database directlyOwnership, official support, replicas, schema changes, transaction boundaries, permissions

Direct database access is not automatically wrong, but it needs clear ownership, security, consistency and compatibility controls. A schema change in one team's database can silently break another team's reconciliation.

The tool Build an integration inventory

SourceDestinationIntegrationFrequencyFailure to investigate
Provider AIntegration serviceAPI or eventPer transactionDuplicate or missing delivery
Provider BIntegration serviceAPI or eventPer transactionAuthentication or timeout
BankReconciliationFileScheduledLate or incomplete file
Integration serviceLoan servicingAPIPer paymentTimeout or rejection
Loan servicingReconciliationAPI, event or approved data interfacePeriodic or event-drivenStale or missing records
ReconciliationOperations workflowAPI or eventOn exceptionException never assigned

Where failures hide Find the boundaries

A system boundary is where responsibility, ownership, data format or execution context changes: an external vendor to an internal application, an API request to asynchronous processing, a message broker to its consumer, an application to its database, cloud to on-premises, or a batch file to its ingestion job. Each boundary brings its own failure modes.

Practice Classify the Apex flows

Practical exercise

Name the pattern and its risk

For each Apex flow, name the integration pattern and the one failure you would check first.

  1. Bank settlement to reconciliation.
  2. Integration service to loan servicing.
  3. Provider A to the integration service.
  4. Reconciliation reading loan servicing.
Show sample answers
  • Bank to reconciliation: batch file. Check first: does the file arrive before reconciliation runs, and is it complete?
  • Integration to loan servicing: synchronous API. Check first: what happens after a timeout, and is a retry safe?
  • Provider A to integration: event or webhook. Check first: can the same event arrive twice?
  • Reconciliation reading servicing: possibly direct database access. Check first: is it supported, and what happens when the schema changes?

3 questions

Check your understanding

1. An API call to loan servicing times out. What do you know?
2. Which pattern must handle duplicate and out-of-order delivery?
3. What is a system boundary?
Answer every question to submit.

What you can do now

  • Trace a data flow with the seven questions.
  • Recognize the four integration patterns and their failure modes.
  • Build an integration inventory.
  • Spot the boundaries where failures concentrate.