I am developing a microservice, using Spring Boot, that exposes REST Endpoint.
To meet the scalability constrains, multiple instance of the [same] service will be deployed (basically scale up when needed and scale down when not needed).
I am using the Spring Cloud Config Server to supply the configuration (such as port to bound, and other configurations) to this service.
Since the service exposing REST api, How can configure the config server to supply a unique port to each instance of the microservice?
One possible solution could be, running the service in individual machine/VM or create a docker container and deploy the service. This could be my solution if there is no way to supply random port to the service from cloud config server.
server.port=0