In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what's the difference between service mesh and api gateway". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what's the difference between service mesh and api gateway?"
API Gateway: expose the service to the outside as a managed api
The core goal of api gateway is to expose micro-services to external systems as managed api. We develop api or boundary services at the api gateway layer to provide specific business functions.
The api/ boundary service invokes downstream micro-services and contains a composition of multiple downstream services of business logic.
Api/ boundary services also need to invoke downstream services in a flexible manner and apply a variety of stability-related modules, such as circuit breakers, timeouts, load balancing / failover, and so on. Most api gateway solutions have these modules or functions built into them.
Api gateway often includes built-in service discovery, analysis (metrics, monitoring, distributed logging, distributed tracking), and security.
Api gateway often collaborates with other components in the api management ecosystem, such as the api Store and the api distribution portal.
Service mesh
So let's see how service mesh is different.
We can think of service mesh as the network communication infrastructure, which allows us to strip most of the application network functions from the service code.
Under service mesh, when we deal with service-to-service communication, we do not need to deliberately implement flexible communication features such as circuit breakers and timeouts in the service code. Similarly, service mesh provides service discovery, monitoring and other functions.
Api gateway and service mesh
The biggest difference between api gateway and service mesh is that api gateway is a key part of exposing api/ boundary services, while service mesh is just an infrastructure for communication between services and does not contain any business concepts.
The figure above illustrates where api gateway and service mesh are located. In addition to the differences mentioned above, there is a lot of overlap between api gateway and service mesh, but it is important to note that they address different requirements and requirements.
In the figure, service mesh is deployed with other services in a sidecar situation, independent of the business functions of the services.
Api gateway hosts all api services and is part of the business function solution. Api gateway may include support for communication between services, but it does not affect api gateway to invoke downstream services through service mesh.
At this point, I believe you have a deeper understanding of "what's the difference between service mesh and api gateway". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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: 222
*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.