Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The difference between traditional service architecture and micro-service architecture

Shulou Source: shulou.com Published: 2022-06-01 00:54:23 10月02日 Update

This article focuses on "the difference between traditional service architecture and micro-service architecture". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn the difference between traditional service architecture and micro-service architecture.

One: traditional service architecture

A system consists of multiple business aggregates, which is composed of multiple java packages into a WAR package and deployed on the application server (such as Tomcat). Over time, the system becomes more and more complex, which brings great problems to development, testing, deployment, operation and maintenance.

Second: micro-service architecture

Different businesses and different services are split into different modules and deployed independently. The same module is distributed and deployed according to the business needs to form a cluster.

Third: the conceptual model of micro-service split

The service modules of Y-axis are split according to different functions, the service modules of the same X-axis are deployed in clusters, and the common or similar modules of Z-axis are split (such as data storage).

Four: introduce container deployment

Fifth: micro-service data layer split

Each service should have its own independent database (schema)

Six: invoke the service through API GATEWAY

Registration, discovery and invocation of services

Seven: exchange of information between services

In the traditional architecture, the interconnection between processes is relatively simple, while micro-services are directly divided into synchronous and asynchronous invocation. Synchronization adopts message queue mode asynchronously by means of RPC or REST.

Eight: distributed transaction processing

Nine: micro-service deployment strategy

Ten: upgrade from traditional architecture to micro-service architecture

1. Stop the traditional architecture immediately

two。 Front end, back end split

3. Service split

At this point, I believe you have a deeper understanding of the "difference between traditional service architecture and micro-service architecture". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Services architecture tradition modules different business data content distributed multiple systems clusters synchronization learning independent complex practical large deeper similar Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi Shulou Technology Docker Huawei