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

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

王林
Release: 2020-04-25 17:24:05
forward
3074 people have browsed it

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template