Giter VIP home page Giter VIP logo

Comments (7)

2549141519 avatar 2549141519 commented on August 10, 2024 1

老师您好!抱歉打扰 我已经完成任务 文档链接为【腾讯文档】【腾讯犀牛鸟计划】实现过载保护插件 -滑动时间窗口
https://docs.qq.com/doc/DWHZPbXFNc0drZUtE 里边有实现思路和编译运行命令。
个人仓库链接为https://github.com/2549141519/trpc-cpp 代码在main分支下

from trpc-cpp.

diya-he avatar diya-he commented on August 10, 2024

已成功领取本issue

from trpc-cpp.

Huixiaohuilalala avatar Huixiaohuilalala commented on August 10, 2024

已成功领取本issue

from trpc-cpp.

2549141519 avatar 2549141519 commented on August 10, 2024

已成功领取本issue

from trpc-cpp.

2549141519 avatar 2549141519 commented on August 10, 2024

老师 您好!
1 我目前实现了滑动窗口算法和filter(分别继承ServerOverloadController 、MessageServerFilter),
image
2 我在服务端程序代码helloworld_server.cc调用如下func进行filter、算法的注册(该func重载自”trpc_plugin.h")
image
3 yaml文件配置使用我写的my_flow_control(filter)和滑动窗口算法
image
image
最后运行结果限流成功 这种实现思路目前是对的吗

from trpc-cpp.

2549141519 avatar 2549141519 commented on August 10, 2024

我感觉有点问题的点主要是我是在代码级别注册的filter和算法 不是在yaml文件内,这个地方是否最后应该做到根据yaml文件分别去注册filter和算法吗?

from trpc-cpp.

2549141519 avatar 2549141519 commented on August 10, 2024

老师您好!抱歉打扰 上述两个问题我已经搞定了 我现在理解用户自定义的filter注册是重载方法后放进helloworld_server.cc的class内自动调用的,yaml可以指定使用某个filter以及采用何种算法、参数,这个我通过修改我的server_flow_controller_generator.cc完成算法的注册(不过算法注册也可以通过代码里写死)我打算明天整理一下我自己的仓库 并给出相应文档

from trpc-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.