Setting up JHipster Registry locally
We have created our gateway and two microservice applications. The microservices have two different databases. So far, it has been easy and simple to create those with JHipster.
JHipster provides two different options we have previously seen, Consul and JHipster Registry. For our use case, let's go with JHipster Registry. We have already learned about JHipster Registry in Chapter 8, Introduction to Microservice Server-Side Technologies. Now, we will see how to set up and start it in our local development environment.
Now, these three services basically act as Eureka clients. We need a service registry that registers and deregisters the application as and when the application is started and stopped, respectively; this is JHipster Registry. The Eureka server (JHipster Registry server) acts as a master to all the Eureka clients.
Since JHipster Registry, as the name suggests, acts as a registry service, all microservice applications and the gateway will register...