The evolution of website architecture

single application architecture

When the website traffic is small, only one application is needed, and all functions are deployed together to reduce deployment nodes and costs. At this point, a data access framework (ORM) that simplifies CRUD workloads is key.

Vertical Application Architecture

When the number of visits gradually increases, the acceleration brought by adding a single application to the machine is getting smaller and smaller, and the application is divided into several applications that are not related to each other to improve efficiency. At this point, a web framework (MVC) for accelerating front-end page development is key.

Distributed Service Architecture

When there are more and more vertical applications, the interaction between applications is inevitable. The core business is extracted as an independent service, and a stable service center is gradually formed, so that front-end applications can respond more quickly to changing market demands. At this time, the distributed service framework (RPC) for improving business reuse and integration is the key.

Mobile Computing Architecture

When there are more and more services, problems such as capacity evaluation and waste of small service resources gradually appear, a dispatch center needs to be added to manage the cluster capacity in real time based on the access pressure to improve the cluster utilization. At this point, a Resource Scheduling and Governance Center (SOA) for improving machine utilization is key.

Data Access Framework (ORM)

Mybatis

Web Framework (MVC)

SpringMVC

Distributed Services Framework (RPC)

Resource Scheduling and Governance Center (SOA)

RMI

RMI: Remote Method Invocation. It can make an object on a Java virtual machine call a method on an object in another Java virtual machine as if it were a local object.

Hessian

Hessian is a lightweight RPC framework, which is based on HTTP protocol transmission and uses Hessian binary serialization, which is more friendly to large data packets.

But its parameters and return values ​​need to implement the Serializable interface.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343985&siteId=291194637