Tagged articles

weight-cache

2 articles · Page 1 of 1
IT Services Circle
IT Services Circle
Sep 10, 2025 · Backend Development

Why Does Spring Cloud Gateway Return 404 After Nacos Config Changes?

After a year‑long mystery, we discovered that Spring Cloud Gateway 3.x caches stale weight data from Nacos, causing 404 errors when routes are removed, and we detail the debugging steps, root‑cause analysis, and a custom solution that synchronizes the weight cache on configuration changes.

JavaSpring Cloud Gatewaynacos
0 likes · 11 min read
Why Does Spring Cloud Gateway Return 404 After Nacos Config Changes?
Programmer XiaoFu
Programmer XiaoFu
Sep 8, 2025 · Backend Development

Why My Spring Cloud Gateway Returns 404 After Nacos Config Changes – A Year-Long Debugging Tale

The article walks through a year‑long investigation of a 404 error that appears after updating Nacos dynamic routing in Spring Cloud Gateway 3.0.1, explains how stale weight caches cause the failure, and presents a custom event‑listener solution that synchronizes the gateway's weight cache with the latest Nacos configuration.

404JavaSpring Boot
0 likes · 12 min read
Why My Spring Cloud Gateway Returns 404 After Nacos Config Changes – A Year-Long Debugging Tale