英文:
Can Java Spring boot micro-services be exported as an installation file?
问题
我正在使用Java Spring Boot来构建微服务。我有多个微服务,包括:
- 认证服务
- 用户服务
- 账户服务
- API网关服务
- 服务发现器
- 配置服务
- 用户界面服务
等等...
我需要将这些微服务下载为一次性安装文件。如何实现这一目标?我真正需要的是将我的微服务项目下载并安装到多个客户端系统中,这些系统可能是Windows或Linux环境。那么如何将所有服务合并到一个安装文件中?
英文:
I am using Java Spring Boot for micro-services. I have multiple micro-services called:
- Auth Service
- User Service
- Account Service
- Api Gateway Service
- Discovery Server
- Config Service
- UI Service
etc...
I have to download these micro-services as a one-time installation file. How is it possible. What I really needed is to download and install my microservice project into multiple client's systems. It would be a Windows or Linux system environment. So how can I combine all services into one installation file?
答案1
得分: 0
No you don't - if you would have written microservices architecture you would have known the answer to your question:)
anywho what is microservices? These are independent services running most commonly on different servers but even if on the same server still as separate instances/containers so what does that tell you? You deploy them to the server. So there is no windows installation like program that will do that for you. Definitely not many different microservices at the same time.
You could write a script which is responsible for containerising these into Docker and then running them in containers but first you should learn how to deploy at least one application just to understand the process. Here is a little guide https://javamondays.com/deploying-spring-boot-on-aws-for-newbies/
英文:
No you don’t - if you would have written microservices architecture you would have known the answer to your question:)
anywho what is microservices? These are independent services running most commonly on different servers but even if on the same server still as separate instances/containers so what does that tell you? You deploy them to the server. So there is no windows installation like program that will do that for you. Definitely not many different microservices at the same time.
You could write a script which is responsible for containerising these into Docker and then running them in containers but first you should learn how to deploy at least one application just to understand the process. Here is a little guide https://javamondays.com/deploying-spring-boot-on-aws-for-newbies/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论