Will a schema-compatible response still break our consuming service?
Use consumer-driven contracts when independently released services need an inexpensive compatibility signal for the interactions they rely on. Use integration tests when deployed components must produce a shared outcome involving state, configuration or sequencing. Both approaches can check semantics if the expectation is expressed explicitly.
Write down what the consumer actually uses
A billing client reads an integer amount in minor currency units. A contract can require the amount field and its type and can verify examples against the provider. A response of 19 instead of 1,900 can satisfy an integer-only rule. Use a documented 19-dollar invoice to make the unit convention observable to both teams.
| Failure mode | Contract check | Integration check |
|---|---|---|
| Provider drops amount_minor | Verify an interaction requiring that named field. | Observe the client failing on the provider response. |
| Integer has the wrong unit | Use a constrained example or explicit value rule. | Compare the final invoice to a known amount. |
| Service points at a stale tenant | A standalone interaction may still verify. | Exercise the deployed configuration with a known invoice. |
| Provider changes first | Verify contracts of relevant supported consumers. | Select a representative cross-service journey for rollout. |
Choose one real journey across the boundary
Create that invoice in a disposable provider, read it through the actual client, and compare the displayed amount to the independent invoice total. Record provider and consumer versions. A contract mismatch can often point straight to the incompatible field. A correct response displayed incorrectly sends the investigation into the consumer.