In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What is the relationship between distributed and micro-services? in view of this question, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
To put it simply, the concepts of distributed and micro-services are similar, and distributed belong to micro-services. But distributed and micro services differ in architecture, role, and granularity. Therefore, the relationship between them is not only related to each other but also different from each other. The following mainly introduces you to distributed and micro services, and discusses the relationship between the two.
1. Micro-service
Micro-service means to split the module into a separate service unit to realize the interaction of data through the interface. 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. 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. Relationship
Connection: distribution is just a means to spread different machines in different places, and then these machines help each other to complete the business. Micro-service is a special kind of distribution, in other words, micro-service architecture is a subset of distributed service architecture. The micro-service architecture makes the iterative speed of the whole system more parallel through finer-grained service segmentation, but the complexity and performance of operation and maintenance will increase with the finer granularity of services. Microservices focus on decoupling, making each module independent. Distribution focuses on resource sharing and speeding up computer computing.
Difference:
(1) the architecture is different: micro-services are 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 function is different: distributed: different modules are deployed on different servers, and distributed mainly solves the problem caused by high concurrency of websites. Micro-service: each service can be applied independently, and the composite service can also be applied systematically.
(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. Distributed services will eventually evolve to micro-service architecture, which is a trend, but the challenges brought by service microservice are also obvious, such as small service granularity and large quantity. Late operation and maintenance will be very difficult.
This is the answer to the question about the relationship between distributed and micro-services. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.