Creates sharing-routes.adoc from misplaced part of actuator-api.adoc
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
** xref:spring-cloud-gateway/reactor-netty-access-logs.adoc[]
|
||||
** xref:spring-cloud-gateway/cors-configuration.adoc[]
|
||||
** xref:spring-cloud-gateway/actuator-api.adoc[]
|
||||
** xref:spring-cloud-gateway/sharing-routes.adoc[]
|
||||
** xref:spring-cloud-gateway/troubleshooting.adoc[]
|
||||
** xref:spring-cloud-gateway/developer-guide.adoc[]
|
||||
** xref:spring-cloud-gateway/aot-and-native-image-support.adoc[]
|
||||
|
||||
@@ -322,14 +322,3 @@ The following table below summarizes the Spring Cloud Gateway actuator endpoints
|
||||
| Removes an existing route from the gateway.
|
||||
|
||||
|===
|
||||
|
||||
[[sharing-routes-between-multiple-gateway-instances]]
|
||||
== Sharing Routes between multiple Gateway instances
|
||||
Spring Cloud Gateway offers two `RouteDefinitionRepository` implementations. The first one is the
|
||||
`InMemoryRouteDefinitionRepository` which only lives within the memory of one Gateway instance.
|
||||
This type of Repository is not suited to populate Routes across multiple Gateway instances.
|
||||
|
||||
In order to share Routes across a cluster of Spring Cloud Gateway instances, `RedisRouteDefinitionRepository` can be used.
|
||||
To enable this kind of repository, the following property has to set to true: `spring.cloud.gateway.redis-route-definition-repository.enabled`
|
||||
Likewise to the RedisRateLimiter Filter Factory it requires the use of the spring-boot-starter-data-redis-reactive Spring Boot starter.
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
[[sharing-routes-between-multiple-gateway-instances]]
|
||||
= Sharing Routes between multiple Gateway instances
|
||||
|
||||
Spring Cloud Gateway offers two `RouteDefinitionRepository` implementations. The first one is the
|
||||
`InMemoryRouteDefinitionRepository` which only lives within the memory of one Gateway instance.
|
||||
This type of Repository is not suited to populate Routes across multiple Gateway instances.
|
||||
|
||||
In order to share Routes across a cluster of Spring Cloud Gateway instances, `RedisRouteDefinitionRepository` can be used.
|
||||
To enable this kind of repository, the following property has to set to true: `spring.cloud.gateway.redis-route-definition-repository.enabled`
|
||||
Likewise to the RedisRateLimiter Filter Factory it requires the use of the spring-boot-starter-data-redis-reactive Spring Boot starter.
|
||||
|
||||
Reference in New Issue
Block a user