Does Spring Boot support Hot Deployments in Production environments?
Asked Answered
T

0

7

Can we do Hot deployments (updating running code) in Spring Boot applications running outside the IDE.

I see that "spring-boot-devtools" is mainly used when developers work through code changes in their IDE but, am looking for hot deployments in Stage or Production environments.

This 'Hot Deployment' feature was shown as one of the highlight in OSGi when compared with Spring Boot based Microservices. Hence am trying to clarify if such a facility is offered by Spring Boot.

Tungstic answered 3/8, 2016 at 11:49 Comment(4)
Speaking as an OSGi advocate: you can always embed OSGi in your application since it is lightweight and designed specifically for embedding. Probably Spring aficionados would frown on this solution though.Pressor
Not hot deployment, but Spring Cloud's RestartEndPoint offers a mean to restart the application: #39386668Towrope
And this on how to use devtools with a jar (outside of the IDE): #35591923Towrope
Could you share any info about your architecture? Is it just one stand-alone spring boot application? In my projects, I use blue-green deployments in a cloud environment which means I deploy the new version of my app and the dns is updated once deployment is successful.Profusion

© 2022 - 2024 — McMap. All rights reserved.