These two days
Watching the sky at night Ready to share , Re service oriented 、 The development of microservice and other technologies is summarized , Of course, there are 100 or 10000 different articles on the Internet to explain and describe what servitization is and what microservices are , What is the difference between microservice and servitization , I've seen one or two of them . I never meant to say something that was repeated , It's not as good as the master . But microservices are not 【 Internet buzzwords I don't want to mention 】 Basically, technology is nothing but cheating laymen , It's not like that 【 Another hot technical vocabulary 】 like that “ We all understand that. We don't agree on that ”, Calm down and think , One possibility is that it's not a good name and it doesn't go straight to the essence , It leads to some misunderstanding , These two days, I suddenly think of something , I'd like to discuss it with you here .
Service and micro
First of all, let's click the words , service (service) What is it? ？ Search Chinese is about here 【 Performance of duties , Work for others , Activities that benefit others 】, Meaning of English 1 Probably 【the action of helping or doing work for someone.】, It means the same thing ,serve The noun , It's a bit specious from a technical point of view . English meaning 2 It is close to our technical point of view 【a system supplying a public need such as transport, communications, or utilities such as electricity and water.】 Although the corresponding Chinese is obviously ” Utilities “, But it's still a basic hit ” As a service “ The heart of the matter ：1、 Independent system ;2、 Public demand .
And let's see “ tiny ”(micro-), There is no misunderstanding about the literal meaning of the word , But when it comes to microservices, it's a little difficult to interpret it , There are many correct answers , There may be ：
- Single responsibility （ Blame small , cohesion ）
- Single process , Containerization, etc （ Light weight ）
wait , The problem lies in , These features 、 Direction 、 Guiding principles , In fact, as like as two peas, the structure is almost identical to that of service. . If a thing is just more than the original one , It's just quantitative change , Then it is not qualified to be discussed alone ： High speed rail is also a railway , How fast is the high speed railway , Even if it's faster than an airplane , Or railway , It's also a railway station , It's also the rail transit system . The plane , Even if the original plane flew slowly , More questions , And the train is not the same thing , Because it was a qualitative change .
I don't quite agree that microservices are just quantitative changes in the original service orientation , So I don't quite recognize the name of microservice , It's like calling an airplane a super fast train , The advantage is that the plane is faster than the train , But the essence of an airplane is to fly , Not fast .
The essence of micro service
Let's go back and forth and talk about it “ Microservices ” What do we usually talk about ？ Service governance 、 Service Grid (service mesh)、 Container arrangement and so on , These things are not “ tiny ” Direct correlation , But the name of microservice has always been used , And I didn't find anyone dissatisfied with the name （ There must be , But I don't know ）, It may be because these technologies solve the problem after the implementation of service , Further swelling of individual services , Attempt to further split （ tiny ） When , Practical difficulties encountered .
There are two ways to solve the practical difficulty of raising train speed ： Invent faster trains or airplanes , So what makes us think “ Microservices ” This is not a high-speed rail , It's the plane , Compared with the service-oriented train, is it revolutionary ？ The answer to this question ( Can fly ) It will eventually become a better name for microservice technology ( The plane ).
The apple of microservice Technology Istio It's been growing rapidly , The latest news is Istio The control plane is reconstructed , The original control plane inside the “ Microservices ” The architecture is reconstructed into a single architecture , Original control plane Multiple components of Pilot, Galley, Citadel Etc. are merged into one istiod Program . This message has led to some talk about microservices vs Discussion on Jushi , But anyway , No one would think istio After becoming a single service ,istio Architecture is not a microservice architecture , This should also prove my thinking , The essence of micro service is not micro . So let's istio What are the characteristics of its micro service nature ？
Meta service meta-service
Istio It was originally a micro service , Even if it becomes a megalithic structure , It is still a service , There is a difference between this architecture and non services ： It serves “ Public demand ”, It's not a business requirement （ Business services ）, It's not a requirement for technical implementation （ Basic services such as DB、 queue ）, It is “ As a service ” In itself ,istio It is the service of serving . Write service to solve the bottleneck and challenge in the process of servitization , That's what it is. ” Microservice architecture “ Different from the nature of service-oriented architecture , This is not because istio Internal components merge into boulder architecture and shake , That's what it is. ” Microservices “ The essence of Technology , So its name should be meta service .( From here on, I call microservices meta services )
element (meta-) This prefix means self reference 、 About X Of X： Data about data is called metadata , Writing program operation program is called meta programming , that , Service to solve the problem of servitization , Nature should be called meta service , When we discuss meta services , There is little discussion about whether a business service is micro Or how to do it micro, It's about splitting services , Need to implement the so and so feature , Therefore, the introduction or research and development of so and so services to solve this problem .
Why does service architecture encounter difficulties ？ Because the service-oriented architecture solves its own problems , The idea of service is not used . Meta service has applied the idea of service more comprehensively , So it is different from service architecture in essence , Put on your wings and become an airplane , So it was discussed 、 Practice and learning .
With that in mind , I searched for it for the first time meta-service, No similar articles were found , Technology related meta-service It's usually metadata-service, Metadata services , There is nothing more about Chinese meta service , So there's this article .