Open In App

Hot and Cold Deployment in Tomcat

Last Updated : 05 Jun, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

What is Hot Deployment?

These services can be added to or removed from the running server.it is the process to change in the currently deployed war file without re-deploying it. It is a time-saving process because the developer can simply run the build and have a new auto-deployed code instead of shutdown and startup is massive.

 
What is Cold Deployment?
Cold deployment is slow as compared with Hot deployment but it is stable. this is defined as a task that requires one or more instances of the server to restart to reflect the changes i.e. for every change, you need to restart the server then changes reflect.

Advantages and Disadvantages:

  • Hot Deployment:-
    • Pros:
      1. The business will never be going to stop.
      2. It prevents you from the manual restart of production server if you made any changes to the contents of the war file being deployed.
    • Cons:
      1. Hot re-deployment of an application sometimes results in Out Of Memory errors.
      2. Hot deployment deploys simultaneously to all the nodes, resulting in downtime.
  • Cold deployment:-
    • Pros:
      1. No caching + also no out of memory issues after subsequent deploys during testing.
    • Cons:
      1. Outage cost is more being a lengthy process.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads