Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the difference between distributed and micro-services of blockchain

Shulou Source: shulou.com Published: 2022-06-02 03:26:34 09月20日 Update

This article introduces the relevant knowledge of "what is the difference between distributed blockchain and micro-services". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. What is a microservice?

To put it simply, a micro-service is a very small service, so small that a service only corresponds to a single function and does only one thing. This service can be deployed and run separately, and the services can interact with each other through RPC. Each microservice is developed, tested, deployed, launched by an independent small team, and is responsible for its entire life cycle.

2. What is distributed?

As the name implies, distributed services are distributed on different machines. A service may be responsible for several functions, which is oriented to SOA architecture. Services also interact with each other through rpc or webservice. After the logical architecture is designed, the physical architecture design should be done. If the system application is deployed on more than one server or virtual machine, and the separately deployed parts interact with each other through various communication protocols, it can be regarded as distributed deployment. Micro-services in production environments must be distributed, and distributed applications are not necessarily micro-service architectures, such as cluster deployment. It replicates the same application to different servers, but logically it is still a single application.

3. What's the difference between the two?

Distributed belongs to micro-service, which means to split the module into an independent service unit to realize the interaction of data through the interface.

(1) the structure is different.

The microservice is designed not to affect the existing system business because of the upgrade of a module and BUG. The slight difference between micro-service and distributed is that the application of micro-service is not necessarily distributed on multiple servers, it can also be the same server.

(2) the effect is different.

Distributed: different modules are deployed on different servers, and distributed mainly solves the problem caused by high concurrency of websites.

Micro services: each service can be applied independently, and composite services can also be applied systematically (the simplified implementation strategy-platform idea of Stonehenge Application [monolith]).

(3) different granularity.

Compared with distributed services, micro-services have smaller granularity and lower coupling between services. because each micro-service is responsible for by an independent small team, it is more agile, and distributed services will eventually evolve to micro-service architecture. this is a trend, but the challenges brought by service micro-service are also obvious, such as small service granularity and large quantity, which will be very difficult for later operation and maintenance.

This is the end of the content of "what is the difference between distributed blockchain and micro-services". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Services distributed application different architecture server independent inter function module granularity system design block content team more knowledge website logic Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux Xiaomi macOS vpn