-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable RouteRefreshListener
#2958
Comments
I did it using the BeanPostProcessor
|
This issue is not only bad because a route filter bean is created each time a HeartbeatEvent is published, but it also causes filters that require initialization, such as LocalResponseCacheGatewayFilterFactory, to behave incorrectly. +I'm not sure why I need to publish a RefreshRoutesEvent when a HeartbeatEvent is published. Are there filters that need to be created when the catalog changes? |
RouteRefreshListener
|
My Gateway is connected to Eureka Service Discovery. Every time a gateway client refresh its state in Eureka, all the routes in gateway are rebuilt. This is critical for me since I have redefined Route Locator and am downloading my routes from another service. How can I disable this behavior or change it?
The whole problem is org.springframework.cloud.gateway.route.RouteRefreshListener. When eureka client creates a HeartbeatEvent, it triggers the rebuilding of routes, is there any way to override this Bean? It does not implement the interface((
The text was updated successfully, but these errors were encountered: