Cloud Foundry : Spring boot vs WAR file -
i new world of cloud, cloudfoundry, saas, paas, iaas, etc.
so have few fundamental questions.
- who better spring boot or war file in terms of deploying application or service cloud using cloud foundry?
- why ?
- if want deploy war file on paas cloud kicks off?
- as in server?
- how know server war file deployed to?
- is using spring-boot embeded tomcat paas mandatory?
- what if application not use spring-boot (no spring reference in pom well) can deploy application war file on cloud? how?
there nothing better in war or spring boot jar. both underhood same things, spring boot jar manages server embedded in , war not have that.
cloud foundry has buildpacks. u need define buildpack when u cf push. if u select java build pack has things required run war on server. gets java, tomcat server , other dependencies needed run war.
https://github.com/cloudfoundry/java-buildpack cloud foundry creates droplet, execution context required dependencies. used run actual vm on cloud.
u need not know server war deployed to. basic idea behind cloud deployment. may on single/multiple vms under hood. u need know called routes. routes actual addresses apps. u need create routes , bind them application, , later app can accessed using routes.
https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html#routes no using embedded servers not mandatory in cloud paas. war can directly deployed. paas platforms has support this. cloud foundry way of doing through build packs.
cf : https://docs.cloudfoundry.org/buildpacks/
heroku : https://devcenter.heroku.com/articles/java-webapp-runner
any application/ non spring apps plain war or jar can used run on paas platforms.
Comments
Post a Comment