Marcin Grzejszczak: Consumer-Driven Contracts and Your Microservice Architecture



Consumer driven contracts (CDC) are like TDD applied to the API. It’s especially important in the world of microservices. Since it’s driven by consumers, it’s much more user friendly. Of course microservices are really cool, but most people do not take into consideration plenty of potential obstacles that should be tackled. Then instead of frequent, fully automated deploys via a delivery pipeline, you might end up in an asylum due to frequent mental breakdowns caused by production disasters.

We will write a system using the CDC approach together with Spring Boot, Spring Cloud Contract verifier. I’ll show you how easy it is to write applications that have a consumer driven API and that will allow a developer to speed up the time of writing his better quality software.


Author of "Mockito Instant" ( and "Mockito Cookbook" ( books. OSS Contributor. Co-founder of the Warsaw Groovy User Group and Warsaw Cloud Native Meetup (

Lead of Spring Cloud Sleuth (, Spring Cloud Contract ( and Spring Cloud Pipelines ( projects at Pivotal (

Contributed to Groovy, Mockito, Rest-assured, Drools, Moco. Author of Uptodate Gradle plugin (, Spock subjects-collaborators extension (, gradle-test-profiler (, JSONAssert ( and XMLAssert ( source projects.

Github profile (

Lanyrd profile (

Twitter: @MGrzejszczak (

Goodreads account (