Comments (7)
老师您好!抱歉打扰 我已经完成任务 文档链接为【腾讯文档】【腾讯犀牛鸟计划】实现过载保护插件 -滑动时间窗口
https://docs.qq.com/doc/DWHZPbXFNc0drZUtE 里边有实现思路和编译运行命令。
个人仓库链接为https://github.com/2549141519/trpc-cpp 代码在main分支下
from trpc-cpp.
已成功领取本issue
from trpc-cpp.
已成功领取本issue
from trpc-cpp.
已成功领取本issue
from trpc-cpp.
老师 您好!
1 我目前实现了滑动窗口算法和filter(分别继承ServerOverloadController 、MessageServerFilter),
2 我在服务端程序代码helloworld_server.cc调用如下func进行filter、算法的注册(该func重载自”trpc_plugin.h")
3 yaml文件配置使用我写的my_flow_control(filter)和滑动窗口算法
最后运行结果限流成功 这种实现思路目前是对的吗
from trpc-cpp.
我感觉有点问题的点主要是我是在代码级别注册的filter和算法 不是在yaml文件内,这个地方是否最后应该做到根据yaml文件分别去注册filter和算法吗?
from trpc-cpp.
老师您好!抱歉打扰 上述两个问题我已经搞定了 我现在理解用户自定义的filter注册是重载方法后放进helloworld_server.cc的class内自动调用的,yaml可以指定使用某个filter以及采用何种算法、参数,这个我通过修改我的server_flow_controller_generator.cc完成算法的注册(不过算法注册也可以通过代码里写死)我打算明天整理一下我自己的仓库 并给出相应文档
from trpc-cpp.
Related Issues (20)
- When using the fiber thread model, there are occasional cases where the unary HTTP server receives the request packet but fails to trigger the business logic properly.
- In the connection pool of fiber scenario, the client-side socket fd cannot be recycled in a timely manner, causing the number of close-wait to increase.
- example 代码中,除了初始化一步,其他七彩石的各种操作都没有,建议补充 HOT 1
- There isn’t any unit-testing building target in the trpc/util/algorithm
- 调用链路的唯一ID HOT 1
- 加密与鉴权 HOT 1
- redis请求的上下文id是怎么关联的 貌似没有找到 HOT 2
- 执行run_client.sh出现无法访问的问题 HOT 3
- The return value from io_uring_submit is not being handled correctly. HOT 2
- 【腾讯犀牛鸟计划】在tRPC-Cpp的2种runtime下发起对2个下游的调用 HOT 12
- 【腾讯犀牛鸟计划】分别使用tRPC-Cpp的三种序列化方式完成对tRPC服务的调用 HOT 3
- 【腾讯犀牛鸟计划】使用tRPC-Cpp开发一个http服务 HOT 5
- 【腾讯犀牛鸟计划】为tRPC-Cpp开发一个简单的校验器 HOT 6
- 【腾讯犀牛鸟计划】为tRPC-Cpp实现一个简单协议的编码器 HOT 16
- 【腾讯犀牛鸟计划】实现IP直连负载均衡插件 - 加权轮询算法 HOT 2
- 【腾讯犀牛鸟计划】实现IP直连负载均衡插件 - hash算法 HOT 1
- 【腾讯犀牛鸟计划】实现过载保护插件 - 固定时间窗口 HOT 11
- 【腾讯犀牛鸟计划】实现过载保护插件 - 令牌桶 HOT 6
- Fails to compile on Arch with gcc-14.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trpc-cpp.