In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to analyze the single architecture and micro-service architecture. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
[monomer architecture] 1. What is a monolithic architecture an archive package (such as war format) contains applications that apply all the functions, which we often call monolithic applications. The methodology of building monolithic applications is called monolithic application architecture. two。 Sample diagram of single architecture
3. The defect of single architecture is high complexity. The whole project contains many modules, the boundary of the module is blurred, the dependency is not clear, and the code quality is uneven. The whole project is very complicated. You get scared every time you change the code, and even adding a simple feature or modifying a BUG can cause implicit flaws. -Technical debt. Over time, requirements change, and personnel change, the application's technical debt gradually forms and accumulates more and more. The system design or code that has been used is difficult to modify because other modules of the application may use it in unexpected ways. -deployment frequency is low. As the code increases, so does the build and deployment time. In a single application, every functional change or defect repair will lead to the need to redeploy the entire application. The way of full deployment takes a long time, wide range of influence and high risk, which makes the frequency of online deployment of single application projects low, which leads to a large number of functional changes and defect fixes between the two releases, and the error probability is high. -the scalability is limited. The single application can only be expanded as a whole, and can not be scaled according to the characteristics of the business module. -hinder technological innovation. Single applications often use a unified technical platform or solution to solve all problems, and every member of the team must use the same development language and architecture, so it is very difficult to introduce a new framework or technical platform. Due to the increasingly obvious shortcomings of the single architecture, more and more companies adopt the micro-service architecture paradigm to solve the problems in the single architecture mentioned above. Instead of building a single, large application, the micro-service architecture splits the application into a set of small and interrelated services. [micro-service architecture] 1. What is micro-service architecture in short, the development method of micro-service architecture style is to develop an independent application system by developing a set of small services. Each of these small services runs in its own process and often uses the lightweight mechanism of HTTP resource API to communicate with each other. These services are built around business functions and can be deployed independently through a fully automated deployment mechanism. These microservices can be written in different languages and can use different data storage technologies. We only do minimal centralized management of these micro-services. two。 Sample diagram of microservice architecture
3. The characteristics of the micro-service architecture-each micro-service can run independently in its own process;-a series of independent micro-services work together to build the whole system;-each service is developed as an independent business, and a micro-service only focuses on a specific function, such as order management, user management, etc.-Micro services communicate with each other through some lightweight communication mechanisms, such as REST API invocation. -can use different languages and storage technologies;-fully automatic deployment mechanism; 4. The advantages of microservice architecture-easy to develop and maintain. A microservice only focuses on a specific business function, so its business is clear and the amount of code is less. It is relatively simple to develop and maintain a single micro-service, and the whole application is built from several micro-services, so the whole application will remain in a controllable state;-A single micro-service starts faster. The amount of code for a single microservice is small, so it starts faster;-Local modifications are easy to deploy. As long as the single application is modified, it is necessary to redeploy the whole application, and the micro service solves this problem. In general, to modify a microservice, you only need to redeploy the service;-the technology stack is not limited. In the micro-service, we can choose the technology stack reasonably according to the characteristics of the project business and the team. The challenge of micro-service architecture-the higher requirements of operation and maintenance. More services means more investment in operation and maintenance. In the single architecture, we only need to ensure the normal operation of one application; while in micro-services, we need to ensure the normal operation and cooperation of dozens or even hundreds of services, which brings great challenges;-the inherent complexity of distribution. Microservices are used to build distributed systems. For a distributed system, system fault tolerance, network delay, distributed transactions and so on all bring great challenges;-the cost of interface adjustment is high. Microservices communicate with each other through interfaces. If you modify the API of a microservice, all microservices that use this interface may need to be adjusted;-repetitive work. Many services may use the same functionality. However, this function has not been decomposed into a micro-service, at this time, each service may develop this function, resulting in code duplication. On how to analyze the single architecture and micro-service architecture to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.