Search code examples
spring-cloud-contract

How to achieve consumer-driven in spring cloud contract?


The contracts in spring-cloud-contract are created and managed by provider side in most of tutorials. in this case, it happens "provider-driven" instead of "consumer-driven". is this the nature of spring-cloud-contract or can i implement consumer-driven in spring-cloud-contract?


Solution

  • We recommend a consumer-driven approach where the consumer service team submits contract PRs to the producer repo. You can find a detailed outline of this approach here.