Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 625 Bytes

File metadata and controls

32 lines (17 loc) · 625 Bytes

《68_Zuul 作为网关的架构原理介绍》

设计模式,其实在各种开源项目里,到处都是设计模式

pre过滤器

-3:ServletDetectionFilter -2:Servlet30WrapperFilter -1:FromBodyWrapperFilter 1:DebugFilter 5:PreDecorationFilter

routing过滤器

10:RibbonRoutingFilter 100:SimpleHostRoutingFilter 500:SendForwardFilter

post过滤器

1000:SendResponseFilter

error过滤器

0:SendErrorFilter

zuul的源码,其实非常简单的,一点都不复杂,zuul的源码,有可能是spring cloud几个核心组件里面,最简单的,ribbon差不多一个级别的简单