mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
240 stars 54 forks source link

Dynamic mapping change #91

Open andrerigon opened 5 years ago

andrerigon commented 5 years ago

Hi,

Is there way to dynamically change/delete a mapping? The idea is to use a persisted feature flag to turn on/off some routes.

Thanks in advance.

mkopylec commented 5 years ago

Currently there is no such feature, but it's an interesting concept :) I will implement it in next version of Charon.

mkopylec commented 4 years ago

I thought about this and found one way to implement such a feature. I could create a background scheduler which will invoke a function in a fixed rate. The function will have to return Charon's configuration. The returned configuration will replace the current one until the next scheduler run.

Does this idea suit your requirements?

KevinVanthuyne commented 3 years ago

I'd also like this functionality to dynamically add routes to the configuration when spinning up new backends