Skip to content
#

tokenbucket

Here are 24 public repositories matching this topic...

用户访问频率控制ratelimit,不同于网关级限流(包括go.uber.org/ratelimit漏桶限流以及github.com/juju/ratelimit令牌桶限流),本限流方案为业务级限流,适用于平台运营中,精细化的按单个用户,按IP等限流,为业内rdeis滑动窗口限流方案的纯GO替代方案,并且支持持久化(可选),可定期把历史数据备份到本地磁盘,程序重启也可保留之前的访问记录

  • Updated Jan 8, 2024
  • Go

This project implements a multi-threaded token bucket filter using mutexes, condition variables, and FIFO queues to regulate packet transmission. It ensures efficient packet flow control, synchronization, and statistical tracking, supporting both deterministic and trace-driven execution modes.

  • Updated Feb 4, 2025

Add this topic to your repo

To associate your repository with the tokenbucket topic, visit your repo's landing page and select "manage topics."

Learn more