Video description
Unlike a monolith, which is an independently deployable unit that can be tested as a whole, microservices are a distributed system, composed of many services that can be tested and deployed independently of each other. While this approach has many advantages, from a testing perspective it can actually make things harder. How do I know the impact of changing or deploying a microservice on other microservices that may depend on it?
Andrew Morgan dives into common microservices testing anti-patterns, including building an end-to-end testing microservices like a monolith, the “distributed monolith” anti-pattern, and unit tests that are heavily reliant on stubs of other microservices that may be inaccurate or stale. He then offers an overview of consumer-driven contract (CDC) testing—a TDD at the API level approach to microservices—as a way to mitigate them. Andrew walks you through the concept end to end, explaining how to use it to guarantee that both message-driven and API-driven interactions between microservices will work without end-to-end testing, provide a fast and reliable feedback loop for microservices development, and deliver independently testable and releasable microservices.
Product information
- Title: Testing microservices with consumer-driven contracts
- Author(s):
- Release date: December 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 0636920362241
You might also like
video
Hands-On Guide to Spring Cloud Contract: Creating Consumer-Driven Contracts to Leverage Contract Tests and Improve Your Code
9+ Hours of Video Instruction Developers need confidence when pushing new features to a new application …
book
Hands-On Microservices - Monitoring and Testing
Learn and implement various techniques related to testing, monitoring and optimization for microservices architecture. Key Features …
video
Moving to Microservices: Using Domain-Driven Design to Break Down the Monolith
Concise, One-Hour Video Introduction to Microservice Architecture Agile practices and techniques, such as continuous delivery, are …
book
Microservices: Up and Running
Microservices architectures offer faster change speeds, better scalability, and cleaner, evolvable system designs. But implementing your …