Integration Patterns & Architecture
3 of 7Choose flexible, secure and scalable patterns for connecting ERP, procurement, inventory, workforce, facilities, payer and other operational systems to Mediloop.
Real-time request/response; transactional integrations
Flexible queries where supported by the source
Enterprise and legacy vendor interfaces
Structured business documents such as orders/invoices
Batch data exchange and legacy integration
High-volume asynchronous processing
Real-time notifications and domain events
Periodic import/export or reconciliation
{
"event": "purchase_order.confirmed",
"eventId": "evt_01J...",
"occurredAt": "2026-09-06T12:15:00Z",
"correlationId": "corr_123",
"data": { "orderId": "po_45872", "status": "confirmed" }
}
// Illustrative event contract until the domain event schema is version-frozen.| Concern | Recommended pattern | Operational outcome |
|---|---|---|
| Duplicates | Idempotency key + source transaction ID | Safe retries |
| Transient errors | Exponential backoff + jitter | Automatic recovery |
| Permanent errors | Dead-letter / exception queue | Controlled manual resolution |
| Partial batch failure | Per-record result + resumable processing | No all-or-nothing data loss |
| Drift | Scheduled reconciliation | Source/target consistency |
| Observability | Correlation IDs, logs, metrics, traces | Fast diagnosis and audit |
Managed integration when external systems expose secure internet/private endpoints
Local adapter for legacy systems, private networks and local files/protocols
Cloud orchestration with controlled local connectivity
Certified partner connector where vendor/customer operations require it
| Surface | Operation / resource | Use | Status |
|---|---|---|---|
| REST/GraphQL/OData/SOAP | Vendor endpoints and Mediloop domain APIs | Synchronous integrations | API surface |
| EDI | EDIFACT/X12 messages + acknowledgements | B2B transactions | Protocol surface |
| SFTP/files | CSV/XML/JSON + manifest/checksum | Batch/legacy | Protocol surface |
| Webhooks/queues | Events + delivery guarantees | Asynchronous automation | Schema by domain |
| Gateway/SDK | Adapter lifecycle, auth, mapping and retries | Custom/legacy modernization | Planned/evolving |