使用Sentinel作为GRPC限流组件,以及使用redis持久化限流规则
一.使用sentinel作为GRPC的限流组件
sentinel官方https://github.com/alibaba/Sentinel/wiki/%E4%B8%BB%E6%B5%81%E6%A1%86%E6%9E%B6%E7%9A%84%E9%80%82%E9%85%8D#grpc
在官方文档中告诉我们只需要
Server server = ServerBuilder.forPort(port)
.addService(new MyServiceImpl()) // 添加自己的服务实现
原创
2020-09-11 15:31:41 ·
2364 阅读 ·
1 评论