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