Introduction to four Java EE architectures

Source: Internet
Author: User

1. Traditional three-tier architecture

Mapping is an MVC-based three-tier architecture that can be broadly divided into presentation layers, business layers, and persistence tiers

The presentation layer is responsible for receiving requests and forwarding requests

The business layer is primarily responsible for processing requests, notably transaction management, logging, and so on, usually encapsulated in this layer

The persistence layer is primarily responsible for the operation between the database and the entity

We can use frameworks to simplify the development of layers, such as the presentation layer using SPRINGMVC or STRUT2, the persistence layer using MyBatis or hibernate, using spring to manage the relationship between layers three

2. Cluster architecture

Clusters are horizontally expanded.

There are many problems in the traditional three-tier architecture, such as the proportion of different modules in the business layer that occupy the system resources is too large, resulting in the utilization of system resources, you can use the cluster to solve such problems.

In the cluster architecture, it is generally an important role, that is the reverse proxy server, its main task is to achieve load balancing, receive user requests, forwarded to the target server.

The reverse proxy server can be implemented using Nginx.

3. Distributed architecture

Multiple modules to complete a function.

Each module can be built with a high availability cluster

4. Micro-Service Architecture

The type of service is divided according to the business function module of the product, which belongs to the vertical division.

Clients can invoke microservices based on HTTP or RPC, which is done to reduce the performance overhead incurred by the call.

Each module can also be built with a high availability cluster

Three lightweight API invocation Services-use service Gateway and service register to implement calls between clients and microservices (for communication)

Three ways SOA implements communication between two systems

Dubbo Architecture:

A typical SOA-based e-commerce Project Architecture:

Introduction to four Java EE architectures

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.