简体   繁体   中英

How to Deploy multiple Springboot microservices in single AWS EC2 Instance

I wonder if we can deploy multiple springboot microservices in single EC2 instance.
I tried but It was creating new instance for every spring boot application.
For Example :
  • Add Service
  • Subtract Service
  • And Result service

    Do I need to create Three EC2 Instances to get the result in Result service. IF Yes It will cost a lot and how to reduce the cost of deployment in AWS cloud.

Locally, you can deploy multiple spring boot instances by running them on different ports. EC2 is no different. Just make sure they don't conflict on the same port and you should be able to do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM