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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!
Original link address: "Advanced article" docker container for what is a micro service (3)
The previous section talked about the single architecture, and the single architecture can not adapt to our services. Let's talk about micro-services to see if we can solve the problem of single architecture.
What is a microservice?
In the last two or three years, although the new term has not been very long, almost every software industry has an impact on it, but also through micro-services, many people are aware of the impact of micro-services on the software industry.
Define
Using a set of small services to develop a single application, each service runs in an independent process, generally using lightweight communication mechanisms to interconnect, and they can be deployed in an automated way.
How micro is micro?
1. Amount of code?
But we have different languages, different languages write the same business, the amount of code may be very different.
According to human judgment, there is also a gap in the amount of code written by internship developers and those with more than 5 years of development experience.
two。 Development time?
There are too many factors affecting the speed of development, personal experience, language that is good at development, and understanding of the business.
3. Immeasurable
It is actually a kind of design idea, design idea, not a fixed quantity.
Characteristics of microservices
1. Single responsibility
Orders and payments, login and registration, which are not closely related to other businesses, can be made into a separate service email and SMS service.
two。 Lightweight communication
Lightweight communication protocol, in short, platform-independent, language-independent. Http .
3. Isolation
Each microservice is in its own memory and does not interfere with each other.
4. Have your own data.
The independence of business data. Each has its own business database to reduce the complexity of the business.
5. Technological diversity
The developer chooses the most suitable development language and provides the proper api.
The background of the birth of microservices
1. The rapid development of the Internet industry
The technology changes quickly, and the number of users changes quickly.
two。 Agile development. Lean method is deeply rooted in the hearts of the people.
Do the fastest iteration with the least cost and get the most useful feedback. Frequently modify the test online.
3. The maturity of container technology
Before the container technology is mature, it is very difficult for micro-services to land, and the emergence of docker solves the bottleneck of operation and maintenance next to the number of hesitant micro-services. Make the landing of micro-services possible.
PS:docker makes microservices possible, thanks to the maturity of containerization technology!
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.