Micro service architectures are exploding in popularity, but a tough problem that is often overlooked is to ensure all of the services that depend on each other still work together after a change is made. One solution is to deploy them all to a test environment and run end to end tests which results in very slow feedback cycle and keeps the testing far away from the engineer.
Enter Pact, which solves this problem by enabling you to test dependencies between services as part of your local testing. Pact acts as a super charged mock server, enabling you to test your software functions consumes an API in the way the provider expects. Pact also gives you the ability to test that the provider of the pact (server in this case) is actually serving the API in the way that is it contracted. This end to end testing enables your microservices to change with confidence that everything will work together and it brings the feedback cycle very close to the engineer.
In this episode Yousaf Nabi from Smart Bear talks us through how pact solves all of these problems and how you can also use it to solve other dependencies between software such as events when you have an event driven architecture.
Podden och tillhörande omslagsbild på den här sidan tillhör Kevin Holditch. Innehållet i podden är skapat av Kevin Holditch och inte av, eller tillsammans med, Poddtoppen.