O'Reilly logo

Practical Microservices by Umesh Ram Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pact

Consumer drivers contract testing is another word which will catch the attention of microservice architecture developers. As so many services talk to each other, small changes somewhere in any of the microservices can break the contract. So contract testing can help in this, but automation is required here as well. Pact helps us in this area. The following is the GitHub link of the pact service: https://github.com/realestate-com-au/pact

How it works is simple. You run the test on the API provider by mocking all its dependencies and store its responses. After this, replay the same responses to the consumer code; the results should match. For JVM-related languages, there is Pact JVM. The other versions are .NET, Ruby, Python, and Swift. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required