Overview
In CDC, the consumer of a service writes tests that define the exact data it needs from the provider. These tests are then run against the provider. This prevents the provider from making 'breaking changes' that it didn't realize would affect its consumers.
Benefits
- Reduced Waste: Providers only implement the fields and endpoints that are actually used.
- Confidence: Providers can change their internal implementation safely as long as they pass the consumer's tests.
- Communication: The contract serves as a clear communication channel between teams.