"JAVA Learning" lightweight and heavyweight __java

Source: Internet
Author: User
Lightweight (lightweight) lightweight description is relative to some heavyweight containers (such as the EJB container), Spring's core package is less than 1MB in file capacity, and the resource burden required to use the spring core package is small, You can even use spring's core packages in small devices. Referencing the Spring technology manual lightweight heavyweight is determined in part by the resources needed to start the program. For example, when the EJB starts, it needs to consume a lot of resources, memory, CPU and so on, so it is heavyweight. And spring is not, so it's a lightweight framework. Professional point is that the magnitude of the main is to see the dependence of the container is determined, the smaller the dependence, the lighter the quantity.
Lightweight frameworks are a programming model relative to the heavyweight framework. Compared with the heavyweight framework, the focus of problem solving is different. Lightweight frameworks, typically composed of struts,spring, focus on reducing the complexity of development, and the corresponding processing power is reduced (such as weak transaction capabilities and no distributed processing capabilities), which is more suitable for developing small and medium enterprise applications. The lightweight framework is developed on the one hand, as much as possible using a pojos approach, make the application independent of any container, which can improve the efficiency of development debugging; On the other hand, the lightweight framework is mostly open source, and the open source community offers good design and many quick build tools and plenty of out-of-the-box Open-source code, This facilitates the rapid development of the project. For example, Tomcat+spring+hibernate has become a kind of architectural choice for many developers to develop Java-Small business application preferences.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.