Integration contracts before integration code
Most integration pain is not technical. It is the absence of an agreed, testable description of what each side will send, accept and do when something fails.
This article is awaiting a named author and a publication date. Both are deliberately blank rather than filled with a plausible-looking placeholder. The content is general engineering guidance and does not describe any ERYVOR client project.
Integration work has a predictable failure mode. Two teams agree on a goal, each builds against its own understanding, and the mismatch surfaces in a shared environment weeks later. The debugging that follows is expensive because it happens across an organisational boundary, where the feedback loop is measured in days.
Write the contract first
A contract is a machine-readable description of the interface: the operations, the payloads, the error cases and the semantics of each. An OpenAPI or AsyncAPI document is a reasonable vehicle. What matters is less the format than the fact that both sides agree to it before either writes implementation code.
The useful property is that a contract can be tested against independently. Each side verifies its own behaviour against the specification, in its own pipeline, without waiting for the other to be ready.
Specify failure, not just success
Most contracts describe the happy path well and the failure modes barely at all. That is backwards, because the happy path is the part both teams already imagine the same way. The questions worth settling early are the awkward ones.
- Is this operation idempotent, and if so, which field is the idempotency key?
- What happens on timeout — may the caller retry, and with what backoff?
- Which errors are retryable and which are terminal?
- What is the ordering guarantee for events, if any?
- How is a correction expressed — a new event, or a mutation of the old one?
- What is the behaviour when a field is absent versus explicitly null?
Adapters keep change contained
Third-party interfaces change on someone else's schedule. The way to survive that is to stop letting vendor concepts leak into your domain model. Each external system sits behind an adapter that translates between its shape and yours. Your product code knows about applications, decisions and disbursements; it does not know which vendor is behind each one.
The test for whether the boundary is in the right place is simple: if replacing a provider means touching business logic, the abstraction has leaked. If it means writing one new adapter against an existing internal interface, the boundary is doing its job.
Test doubles make the schedule independent
Once the contract exists, each adapter gets a test double that honours it — including the failure cases. Development no longer blocks on partner sandbox availability, which is routinely the longest unplanned delay in integration-heavy work. When the real sandbox arrives, it becomes a verification step rather than the start of discovery.