How to Auto Scale Microservices in Local server without cloud using JAVA

笑着哭i 提交于 2019-12-11 17:42:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!