Spring-cloud-gateway: Provide some default implementations for "persistent" RouteDefinitionRepository

Created on 25 Sep 2019  路  4Comments  路  Source: spring-cloud/spring-cloud-gateway

Hey there,

in short - what do you think of adding a few default implementations to store Route Definitions within some storage backend (Mongo/Redis/etc..) in order to share routes across instances?

To provide some context, we currently use Redis and have implemented a custom RouteDefinitionRepository in order to share routes between multiple instances of the Gateway which works really well.

Currently, Spring Cloud Gateway only offers the InMemoryRouteDefinitionRepository which is probably just a "fallback" leaving it up to the user to implement it on their own approach, right?

However, I think it would be quite appealing to add some configurable RouteDefinitionRepository implementations to the Gateway to be usable out of the box.

Whats your opinion?

If you like it, I would like to start working on it :)

enhancement help wanted

Most helpful comment

The PR is open since November last year. No feedback since then, I would highly appreciate to get this integrated. Maybe also a r2dbc implementation as well.

All 4 comments

PRs welcome, especially if you have a working one on based off of redis. Gateway already has support for redis with rate limiting.

Alright, then I will start working on that

How is it going? There is some forecast for this? I'm need something like that and I'm open to help with it. @spencergibb @dennis-menge

The PR is open since November last year. No feedback since then, I would highly appreciate to get this integrated. Maybe also a r2dbc implementation as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NickolaiBarysevich picture NickolaiBarysevich  路  6Comments

larva2333 picture larva2333  路  6Comments

xfworld picture xfworld  路  3Comments

ryanjbaxter picture ryanjbaxter  路  6Comments

ShahzebAnsari picture ShahzebAnsari  路  3Comments