Give me an example of each integration pattern from a project, and why you chose it.
Your confidence:Not rated
Model answer
Prepare one line per pattern, ideally from one project, so it sounds lived rather than recited. For example, a retail bank:
- Request-reply: advisers click Run KYC; Apex calls the KYC provider through a Named Credential with a 3-second timeout, and falls back to the last cached result if it's slow.
- Fire-and-forget: on approval, a platform event is published after commit; MuleSoft opens the account in core banking and calls back with the account number. Idempotency key = application ID.
- Batch data sync: nightly Bulk API 2.0 upsert of balances and products by external ID, with a reconciliation report.
- Remote call-in: the mobile app creates service requests through a custom Apex REST endpoint, authenticated with an External Client App (JWT bearer for the backend).
- UI update on data change: a failed direct debit in core banking publishes an event; the adviser's console shows a banner through
empApi. - Data virtualization: transaction history appears on the customer page through an external object over OData, because copying billions of rows would be pointless.
Then say why: the user needed an answer now (1), the business result could come later (2), volume (3), the other system owns the moment of creation (4), people need to see change immediately (5), and the data is huge, external and read-only (6).
โ Key points to hit
โ Red-flag answers
- Listing pattern names without examples
- Using request-reply for everything
- No mention of failures
โช Follow-ups
Which of those was hardest to get right, and why?
Usually fire-and-forget: getting acknowledgements, retries, idempotency and status back to the user right, and monitoring messages stuck in between.
Where did middleware help most?
In fire-and-forget and batch sync: transformation, retries, routing to several back ends and central monitoring. For the simple KYC lookup, a direct Named Credential callout was enough.