spring-cloud-bus icon indicating copy to clipboard operation
spring-cloud-bus copied to clipboard

Add Gateway routes refresh support

Open JWThewes opened this issue 8 years ago • 1 comments

We're using a config server and Spring Cloud Bus to distribute a RefreshRemoteApplicationEvent. This works fine so far. When our Zuul Proxy receives the event with changed routes they don't get loaded. I've solved this by adding my own RefreshListener which does the following: zuulHandlerMapping.setDirty(true);

After adding this the refresh works fine and new routes are added.

We're on Cameden SR5. It's quite a simple setup. One config server. One Zuul server. One RabbitMQ.

To reproduce add a route to the config and invoke the /monitor endpoint on the configserver. The Zuul gets triggered but the routes are not changed.

If you need any further information feel free to ask anytime.

JWThewes avatar Feb 16 '17 07:02 JWThewes

Updating this for gateway as zuul is no longer maintained.

spencergibb avatar Mar 10 '20 20:03 spencergibb