2021年1月19日

摘要: 上一篇讲到 soul 是如何使用 websocket 进行数据同步的,今天来分析下,websocket 连接是什么时候建立的。 上一篇也讲到,启动 soul-admin 时,因为 yml 配置了使用 websocket 进行同步,会加载这三个类,WebsocketCollector 这个类就是开启一 阅读全文
posted @ 2021-01-19 22:11 fightingting 阅读(264) 评论(0) 推荐(0) 编辑
 
摘要: 当我们在 soul-admin 更改 selector 或者 rule 时,数据是怎么同步到网关内存中的呢。 我们知道 soul 网关有四种数据同步的方式,http 长轮询,websocket,zookeeper,nacos,数据同步处理就是在这些 listener 里进行的,默认使用 websoc 阅读全文
posted @ 2021-01-19 01:38 fightingting 阅读(175) 评论(0) 推荐(0) 编辑
 
摘要: 今天运行 soul-examples-dubbo,其实这里的配置可以参考官方文档,写的很详细。dubbo 默认使用 zookeeper 作为配置中心,当然也不一定非要使用 zookeeper,nacos 也可以,只要你在 soul-admin 修改下相关的配置即可。 我这次启动 soul-examp 阅读全文
posted @ 2021-01-19 01:37 fightingting 阅读(90) 评论(0) 推荐(0) 编辑
 
摘要: 今天准备跑下 soul 官方的 example,首先从 soul-examples-http 开始。这个 example,soul 处理的是 http 请求,使用的插件是 divide。 刚开始 soul-examples-http 下的 SoulTestHttpApplication 没有运行选项 阅读全文
posted @ 2021-01-19 01:36 fightingting 阅读(266) 评论(0) 推荐(0) 编辑