Home  >  Article  >  Java  >  What is the difference between hot loading and hot deployment in java

What is the difference between hot loading and hot deployment in java

王林
王林forward
2020-04-25 17:24:052990browse

What is the difference between hot loading and hot deployment in java

First of all, whether it is hot loading or hot deployment, the project can be compiled/deployed without restarting the service, both are implemented based on Java class loader.

The difference between the two is as follows:

In terms of deployment method:

Hot deployment is to redeploy the project while the server is running.

Hot loading is to reload classes at runtime.

(Video tutorial recommendation: java video)

In terms of implementation principle:

Hot deployment is to directly reload the entire Application is relatively time-consuming.

Hot loading is to reload the class at runtime. A thread will be started in the background to continuously detect whether your class has changed.

In terms of usage scenarios:

Hot deployment is more commonly used in production environments.

Hot loading is more commonly used in development environments. It cannot be used online due to security issues and is difficult to monitor.

Recommended tutorial: java entry program

The above is the detailed content of What is the difference between hot loading and hot deployment in java. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete