Spring 启动微服务部署

Spring Boot Microservices Deployment

有没有人部署过同一个微服务的多个实例?如果是,您如何管理此类部署?

您可以使用 Spring Cloud 和 Eureka Server。

https://spring.io/blog/2015/01/20/microservice-registration-and-discovery-with-spring-cloud-and-netflix-s-eureka

我们正在使用 Kubernetes 管理容器中的多个实例,将所有内容封装在 docker 容器中。

在 cloud foundry 中,部署后将应用程序扩展到多个实例非常简单。

用于部署 -

cf push -f <deployment manifest file>

用于扩展到多个实例 -

cf scale <your_app_name> -i <number_of_instances>