Using Pact to Deploy Microservice with Confidence
summary
Shows how consumer-driven contracts (Pact) replace brittle end-to-end tests: consumer unit tests produce a JSON pact, the provider pulls it from a Pact Broker / Pact Flow and runs verification tests against its HTTP endpoints. Demo uses a Go client for an “Scooop” app (health check, barcode regex examples), publishes versions, and runs a can-i-deploy check in CI to block unsafe releases. The setup is language-agnostic, supports async messaging, and works in practice.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:10Deploy microservices with confidence
- 4:46DORA metrics and team performance
- 7:30Deploying microservices safely
- 9:39Consumer-driven contract testing with Pact
- 11:10Pact for consumers and producers
- 14:17Pact in Go microservice demo
- 23:31Publishing contracts to Pact Broker
- 24:33Verifying contracts in producer
- 30:53Automating deployment safety with can-i-deploy
- 37:42Pact vs OpenAPI testing
- 41:40Q&A: Adopting Pact in large services
- 43:07Q&A: Pact for async communication
- 43:51Q&A: Pact vs OpenAPI and Protobuf
- 46:22Q&A: Pact and shared libraries
- 47:23Q&A: Social and adoption challenges
- 48:49Q&A: Pact and shared client libraries
- 50:21Q&A: Pact and API versioning
- 51:46Q&A: Backward compatibility with Pact
- 53:50Q&A: Teaching Pact concepts
- 54:12Q&A: Pact for authentication flows
- 54:57Q&A: Self-hosting vs Pact Flow
- 56:54Q&A: Multiple consumers and shared clients
- 58:44Summary
related talks
01h 13mContract Testing Made Easy: Master Pact for Microservices in C#
39mPacts to the Rescue! Making your microservices play nicely together
01h 21mMicro-Service Delivery Without the Pitfalls
09m"Contract Testing 101"
45mExecutable Agreements: Code, Collaborate, and Deploy with Confidence
45mDeploy microservices confidently using Consumer Driven Contracts
10mDeploy microservices confidently using Consumer Driven Contracts
24mHow to test microservices and stay sane
