Service Discovery

Service Discovery is one of the key tenets of a microservice based architecture. This guide aims to describe built-in CAS supported options that can be used for locating nodes for the purpose of load balancing and failover.

:scroll: Consul Server Discovery Service

HashiCorp Consul has multiple components, but as a whole, it is a tool for discovering and configuring services in your infrastructure. It provides key features such as service discovery, health checking and more.

More...

:scroll: Eureka Server Discovery Service

Eureka is a REST-based service, offered by Spring Cloud Netflix, that is primarily used for locating services for the purpose of load balancing and failover of middle-tier servers.

More...

Actuator Endpoints

The following endpoints are provided by CAS:

clusterTopology
CAS endpoint2 operationsNot exposed by default
1

Turn the endpoint on and expose it over the web. One entry covers every operation. By default only info, health and status are exposed.

1
2
management.endpoint.clusterTopology.access=UNRESTRICTED
management.endpoints.web.exposure.include=clusterTopology

Endpoints may be mapped to other paths. For example, to serve health at healthcheck:

1
management.endpoints.web.path-mapping.health=healthcheck