发布了 3 篇内容
共 593字, 被阅读 29次
获得了 0 次赞同
获得了 0次喜欢, 获得了 0 次收藏
参与了 3 次互动
互动包含发布评论、点赞评论、参与投票等
![SpringCloud Gateway 动态路由](https://static001.geekbang.org/infoq/fc/fc82e73fc5528a86b30709e2ce9d7ae0.png?x-oss-process=image/resize,w_416,h_234)
SpringCloud Gateway 动态路由
动态路由即:在不进行网关应用重启的情况下,可以通过管理 API 或者管理 UI 的方式添加路由,能实时或准实时生效;且在网关应用重启后,动态添加的路由仍然存在。
![SpringCloud Gateway 路由转发性能优化](https://static001.geekbang.org/infoq/bb/bbd98cfc13834e3a94640a99c4f84d42.png?x-oss-process=image/resize,w_416,h_234)
SpringCloud Gateway 路由转发性能优化
通过测试验证,发现随着路由增长,路由性能会严重下降,本篇,紧接上篇《SpringCloud Gateway 路由数量对性能的影响研究》针对采用 Path 方式路由的进行性能优化。
![SpringCloud Gateway 路由数量对性能的影响研究](https://static001.geekbang.org/infoq/a7/a70260dbd2b6abe1ce3d0ddce6ba95e7.png?x-oss-process=image/resize,w_416,h_234)
SpringCloud Gateway 路由数量对性能的影响研究
近期在公司建设 API 治理平台过程中,以 SpringCloud Gateway 为基础,构建了一个 API 的 Mock 服务,以 API 的 URI 作为路由,根据服务端存储的 API DSL,验证请求信息,生成并返回 Mock 报文。