Maybrittnelson / gateway-demo

Spring Cloud Gateway
1 stars 0 forks source link

proxy,ops操作routeDefinition设想 #4

Open Maybrittnelson opened 5 years ago

Maybrittnelson commented 5 years ago

前言

戳这个issue,理解RouteDefinition如何转成Route

proxy

proxy为对外直接暴露模块 route刷新过程:redis sub msg from ops(RouteService) => push refreshRoutesEvent(RouteService) => refresh routeDefinition(CachingRouteDefinitionLocator)

ops

后台维护自定义route模块 route存储过程:mysql => redis => redis push msg to proxy(RouteServiceImpl)