We will set up a local Consul cluster and integrate it with Judge-d to provide contract verification between microservices.

The first part of the article is available  here.

Prerequisites

To go through all demo steps you need Git, Docker, and Java version 8+ installed on your machine. You can find instructions on how to do it below:

Walkthrough

Local Demo Environment Setup

  • A  Consul Cluster with a single Consul server instance and two consul client instances connected to this server (in a production environment there should be more server instances to provide scalability in case of a large load of instance failure).
  • Judge-d-server and  judge-d-agent instances. An agent will run in the CONSUL profile to use the consul cluster as a source of information about the environment.
  • Two applications register with the consul cluster using  Spring Cloud Consul — one being a provider, the second being a consumer.

#tutorial #java 8 #demo #microservice

Service Discovery: Consul Support in Judge-d (Part 2) [Demo]
1.20 GEEK