Use a Pact message (asynchronous) interaction. The consumer test describes the message it expects, with matchers for types and formats, and feeds it to its real handler, which must process it without error; that generates the pact, which acts as an executable schema for the fields the consumer relies on. The provider verification calls a message producer hook that builds the real message with the same serialiser and mapping code used in production, and checks it against the pact. The transport (Service Bus) is not part of the contract; the body and metadata (such as a type or version property) are. For evolution, add fields freely (consumers ignore unknown fields), never rename or remove a field a pact still uses, and introduce breaking changes as a new message type or version that runs alongside the old one until can-i-deploy shows no consumer needs it. Retries and dead-lettering are consumer behaviour, tested in the consumer's component tests, not in the contract.
Checks they can extend contract testing beyond HTTP to the integrations that usually break silently.
Last updated 23 Nov 2026.