#58: Consumer-driven Contracts: TDD between services

22 lis 2021 | Podcast | programowanie | tdd | IT

Consumer-driven Contracts is an approach to testing integration between services. In a distributed system, many components talk to each other. Typically via request/response protocols or message queues. The client must know and understand the API provided by the server. What kind of endpoints are available, what formats, request/response schema. Without consumer-driven contracts (CDC for short), we are often reckless when it comes to testing. Maybe we have a bunch of smoke tests against a mocked server. Maybe we copy-paste typical responses from the server’s documentation. But both client and server can evolve, breaking the integration in unexpected ways. CDC attempts to codify the API without explicit schema and coordination.

Read more: https://nurkiewicz.com/58

Get the new episode straight to your mailbox: https://nurkiewicz.com/newsletter

POSTY TEGO AUTORA

OpenTelemetry glossary: 30 terms you should know15 kwi 2026

Blog | programowanie | java | monitoring | IT

Podcast everything: how to turn any content into podcast feed30 sty 2026

Blog | programowanie | podcast | IT

Is ‘return await’ redundant or necessary in JavaScript?5 sie 2024

Blog | programowanie | javascript | IT

#97: Ruby: help every programmer to be productive and to be happy13 lut 2023

Podcast | programowanie | ruby | ruby on rails | IT

Around IT In 256 Seconds

Tomasz Nurkiewicz