With the cloud foundry, we also felt that using eureka might be redundant. but we did one to externalize and symbolize service names. At first we needed a Spring configuration service for configuration management, but it felt like we could use it as a central source of URL service maps. (user code had to be written to be downloaded from a central data source).
We created the Spring configuration service with a custom data warehouse that contains many things, such as passwords, service URLs, etc. Using the cups, we connect to the Spring configuration service, and the configuration template contains a set of tokens, which then go to the service URLs on the fly.
Initially, we needed the Spring configuration service to manage the configuration, but it felt like we could use it as the central source of the service URL (user code had to be written to load from the data source).
The cloud foundry has no ip and ports, so there is no need to track the health check of a single instance to balance the load. CF does it very well out of the box. Thus, all you need is a central data source for matching host.domain with keys / tokens. eg. membership.v1 = https: // membership-1-0-2 .
But if you want one transaction to hit CF so that you can call a service hosted in several data centers, then you will need eureka or consul.io to overcome this. CF clusters do not cover data centers.
source share