Refreshing Spring Cloud Gateway Route Cache on Service Instance Changes Using Nacos Events
The article explains why Spring Cloud Gateway may still call a downed service due to a stale CachingRouteLocator cache, and demonstrates how to listen to Nacos InstancesChangeEvent to evict the cache so the gateway always uses the latest service list.
