问题
Hi I am new to the microservices. I have created spring boot(maven) microservices (2 services, 1 gateway and service registry). How can I scale (auto scaling) 2 services without cloud technology. Is it possible in the local configuration?
回答1:
I use Docker swarm and this gives me a cloud-like environment where I can upscale or downscale a service very easily.
You can read here about using Docker with Spring Boot. There is also this article.
P.S. Docker and Docker swarm are free or charge (the community editions).
来源:https://stackoverflow.com/questions/45058457/how-to-auto-scale-microservices-in-local-server-without-cloud-using-java