如何使用Spring Boot Micro Service实现编排?
问题描述:
在Spring Boot中编排微服务的最佳方法是什么.
what is best way to orchestrate micro services in spring boot.
答
您有很多选择,但我将列出其中3个可供选择的选择:
You have many options but I will list 3 of them that I would choose from:
- 使用REST调用直接调用其他微服务(将URL硬编码到属性文件中或创建用于服务间通信的服务).
- 使用 spring-cloud 和 spring-cloud 和
- Directly call the other microservice using REST calls (hard code the URL in a property file or create a service for inter service communication).
- Setup microservice architecture with spring-cloud and netflix OSS
- Setup microservice architecture with spring-cloud and kubernetes