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:
- Who produces the information?
- What information is produced?
- How is it transmitted?
- Which system receives it?
- How is it validated?
- Where is it stored?
- What happens if processing fails?
Four patterns How systems exchange information
| Pattern | How it works | What to investigate |
|---|---|---|
| Synchronous API | System A sends a request to B and waits for a reply | Success, validation and authentication errors, timeouts, server errors; was it rejected, never received, or done without a reply? |
| Asynchronous messaging | A publishes an event; another system consumes it later | Duplicate and delayed delivery, out-of-order messages, failed consumers, retries, poison messages, replay |
| Batch and file | A writes a file; B processes it on a schedule | Arrival time, format, completeness, record counts, duplicate, missing or partial files, reprocessing |
| Database integration | A reads B's database directly | Ownership, 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
| Source | Destination | Integration | Frequency | Failure to investigate |
|---|---|---|---|---|
| Provider A | Integration service | API or event | Per transaction | Duplicate or missing delivery |
| Provider B | Integration service | API or event | Per transaction | Authentication or timeout |
| Bank | Reconciliation | File | Scheduled | Late or incomplete file |
| Integration service | Loan servicing | API | Per payment | Timeout or rejection |
| Loan servicing | Reconciliation | API, event or approved data interface | Periodic or event-driven | Stale or missing records |
| Reconciliation | Operations workflow | API or event | On exception | Exception 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.
- Bank settlement to reconciliation.
- Integration service to loan servicing.
- Provider A to the integration service.
- 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
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.