Java Spring Boot 微服务可以导出为安装文件吗?

huangapple go评论76阅读模式
英文:

Can Java Spring boot micro-services be exported as an installation file?

问题

我正在使用Java Spring Boot来构建微服务。我有多个微服务,包括:

  1. 认证服务
  2. 用户服务
  3. 账户服务
  4. API网关服务
  5. 服务发现器
  6. 配置服务
  7. 用户界面服务

等等...

我需要将这些微服务下载为一次性安装文件。如何实现这一目标?我真正需要的是将我的微服务项目下载并安装到多个客户端系统中,这些系统可能是Windows或Linux环境。那么如何将所有服务合并到一个安装文件中?

英文:

I am using Java Spring Boot for micro-services. I have multiple micro-services called:

  1. Auth Service
  2. User Service
  3. Account Service
  4. Api Gateway Service
  5. Discovery Server
  6. Config Service
  7. 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/

huangapple
  • 本文由 发表于 2020年8月9日 12:11:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/63322385.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定