Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
How it works...
A detailed explanation about how Consul works and all the possible options for its key/value service would take a book of its own, so here we will look only at the basic pieces. It is strongly recommended that you read Consul's documentation at https://consul.io/intro/getting-started/services.html.
In step 3, we started the Consul agent in server mode. It acts as a main master node and, in real deployment, the local agents running on the individual instances will be using the server node to connect to and retrieve data from. For our test purposes, we will just use this server node as if it were a local agent.
The information displayed upon startup shows us that our node has started as a server node, establishing an HTTP service ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access