diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index a95ff91c..ecfb3afc 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -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[] diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway/actuator-api.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway/actuator-api.adoc index f8e29899..1f8549cd 100644 --- a/docs/modules/ROOT/pages/spring-cloud-gateway/actuator-api.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-gateway/actuator-api.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. - diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway/sharing-routes.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway/sharing-routes.adoc new file mode 100644 index 00000000..554e9007 --- /dev/null +++ b/docs/modules/ROOT/pages/spring-cloud-gateway/sharing-routes.adoc @@ -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. +