I have a microservices architecture. I have 1 instance of each service running on a remote and registered with Eureka successfully. I want to run the few services locally which I have made changes to. Is it possible to have my eureka clients choose the local instance over the deployed instance when multiple are available, and similarly to fall back to the deployed instance when there is no local instance of a given microservice registered with the eureka server?
Not sure if the best approach here is to have a single eureka server and both the remote and local instances register against this, or if it is better to have a remote eureka server and a local eureka server, and when the local does not have a registered instance I am looking for, my client then queries the remote Eureka server?
For any service calls in the remote environment, these should only go to the remote instances and not to the local instances I am running for any service
I have tried looking at Eureka zones, but this all seems to involve both the remote and the local eureka servers being aware of each other