The Java EE Framework is lightweight and heavyweight

Source: Internet
Author: User

The focus of the lightweight framework and the heavyweight framework on problem solving is different.


A lightweight framework

The lightweight framework focuses on reducing the complexity of development, and its processing power is diminished (such as a weak transaction, no distributed processing power), and is more suitable for developing small and medium business applications. The use of lightweight frames has the following characteristics:

① because it is possible to develop based on POJOs (Simple Java objects), so that the application does not depend on any container, which can improve the efficiency of development debugging.

② lightweight racks are mostly open source projects, and the open source community offers good design and many quick build tools, as well as plenty of ready-to-use open source code, which facilitates rapid project development. For example, Tomcat+spring+hibernate has become an architectural choice for many developers to develop Java EE application preferences for small and medium enterprises. With an endless selection of frameworks, developers can apply three levels of lightweight framework choices to the enterprise as needed.

The lightweight framework spring's core package is less than 1MB in file capacity, and the resource burden required to use the spring core package is small, and you can even use spring's core package in small devices. Less intrusive or intrusive, less dependent, and can be run directly after writing, similar to writing common Java classes.


Two-heavyweight frame

As a heavyweight framework, the EJB framework emphasizes high scalability and is suitable for the development of large-scale enterprise applications. In the EJB architecture, all the problems related to infrastructure services and the underlying allocation problems are handled by the application container or server, and the EJB container provides a specialized system performance solution by reducing the number of database accesses and distributed processing, which can fully solve the problems of the systems.

Heavy-weight Framework EJB starts when it consumes a lot of resources, memory, CPU, etc., is very intrusive, depends on more things, need other containers to run.

Three summary

The generation of lightweight frameworks is not a negation of the heavyweight framework, even to the extent that the two are complementary. Lightweight frameworks are developing to develop more powerful, more functional enterprise applications, while the new EJB specification EJB3.0 is trying to simplify the use of the Java EE so that ejbs are not just good at dealing with large enterprise systems, but also exploiting small and medium-sized systems, which is an effort to reduce the cost of EJB. A combination of lightweight and heavyweight frameworks is also a good solution for large enterprise applications and small and medium-sized applications that may involve capacity expansions in the future.

So it can be said that lightweight heavyweight is determined in every way by the resources needed to start the program. The magnitude is determined by the dependence of the container, the smaller the dependence, the lighter the quantity.


Original address: http://click.aliyun.com/m/9114/


This article is from the "11768640" blog, please be sure to keep this source http://11778640.blog.51cto.com/11768640/1889785

The Java EE Framework is lightweight and heavyweight

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.