Running 5 Spring boot application as standalone vs Deploying all in one Tomcat -
am having 5 spring boot applications , have run them in single machine.
which efficient way run these
- running micro services separately different micro services
- deploy in tomcat cat server war
i dont have special requirement. want know efficient in terms of memory, i/o , processing, latency, scalability
for example, in case when 1 of apps fails should restart 1 spring boot. otherwise, should restart entire tomcat server apps installed.
another things processing , scalability: if have separated modules independent each other (apps in case), it's simpler maintain , modify them no affect 1 (see item #1).
in terms of memory, i/o , latency see item #1 - it's easier have deal 1 separated app large number of them @ once. :)
so if apps loosely coupled (by functionality, example) case may spring boot, otherwise can use tomcat server.
Comments
Post a Comment