What is a Consumer-Driven Contract (CDC)?

Category: Microservices ArchitectureWhat is a Consumer-Driven Contract (CDC)?
Editor">Editor Staff asked 2 years ago

What is a Consumer-Driven Contract (CDC)?

1 Answers
Editor">Editor Staff answered 2 years ago

This is basically a pattern for developing Microservices so that they can be used by external systems. When we work on microservices, there is a particular provider who builds it and there are one or more consumers who use Microservice.
Generally, providers specify the interfaces in an XML document. But in Consumer Driven Contract, each consumer of service conveys the interface expected from the Provider.