Tuesday, April 2, 2019

Contract Testing in HL Tech With Judge Dredd, Part 1

In microservices architecture, it is crucial to ensure that services are able to communicate with each other. What if, by accident, a developer introduces a change which will make inter-service communication impossible? An answer to this threat is contract testing. Judge Dredd, an open source project developed within HL Tech, is a solution to this problem. It aims at performing contract tests between any services deployed within any environment under Judge Dredd jurisdiction.

Microservices Environment and a Threat of Broken Communication

The typical microservices environment consists of many services. In order to provide business value, they need to cooperate. Therefore, they need to communicate with each other. There are many technologies supporting such communication, synchronous or asynchronous, like REST and JMS. Protocols specify how services should communicate – the format of messages exchanged between both parties is based on the protocol. Specified fields must be present in the message to fulfill conditions specified by the protocol, but they have custom value to provide a context of communication.



from DZone.com Feed https://ift.tt/2IbyixQ

No comments:

Post a Comment