In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "how to understand Gateway Services in Micro Services". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to understand gateway services in micro-services".
Micro service gateway service
Gateway service is an important part of micro-service system. In the micro-service system, there will be common functions among various services, such as authentication, security, monitoring, logging, service scheduling and forwarding. These can be abstracted separately to do a service to deal with. So the micro-service gateway came into being. Its main role is to achieve some functions as the only entrance of traffic in the micro-service system.
The main responsibilities of micro-service gateways can be divided into two types.
Main business function extraction, authentication, security, service scheduling, current limit, circuit breaker, etc.
Extraction of non-major business functions, monitoring, logging, caching, blacklist and whitelist, burying points, etc.
Spring Cloud Gateway Service
The two main popular species in the market now
Netflix Zuul 1.0
The API Gateway project, which is open source by Netflix, does not integrate Netflix into the spring micro-service architecture. Instead, spring integrates zuul into spring-cloud. Currently, spring does not intend to integrate zuul2.x integration.
Spring Cloud Gataway
Spring-cloud-Gateway is a sub-project of spring-cloud under spring. Another theory is that the continuous jump of zuul2 and the poor performance of zuul1 gave birth to the spring incubation Gateway project.
The previous introduction of the origin of the two gateway services, the next performance comparison I do not intend to do stress testing in the direction of more introduction, bloggers do not do stress testing conditions. I would like to recommend a blog post with a detailed comparison of the pressure test.
Spring Cloud Gateway
Is based on WebFlux development. The name of the WebFlux module is spring-webflux, and the Flux in the name comes from the class Flux in Reactor. Spring webflux has a new non-blocking functional Reactive Web framework that can be used to build asynchronous, non-blocking, event-driven services that perform very well in terms of scalability. Use a non-blocking API. Websockets is supported, Spring integration
Netflix Zuul 1.0
The bottom layer is based on servlet,Zuul to deal with the abstraction of http request Zuul. It is very easy to understand, easy to expand, easy to debug. Provides two special abstract classes, users to use, more flexible. No asynchronous support is provided. Flow control is supported by hystrix.
At this point, I believe you have a deeper understanding of "how to understand the gateway service in micro services". 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: 267
*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.