关于「平均合规的突发:滑动窗口上限与令牌桶的 b + rW 界」,《私域速率整形》给出的定量结论是什么?
结论:这张表把「突发额度」与「长期速率」的关系摊开了。在 6 秒的窗口里,一个收件人最多可能收到 46 条,折合每分钟 460.000 条,看起来很惊人;可窗口拉长到 600 秒,折合每分钟只剩 14.500 条;拉长到一天 86400 秒,最多 14445 条,折合每分钟 10.031 条,几乎就是长期速率 10.000。突发额度在一天的总量里只占 0.0031。突发之后要补的等待是 270 秒。换句话说,突发额度是一次性的信用,不是额外的产能;用掉了,就得按正常速率还回来。
数据口径:示意计划每分钟平均 10.0 条,攒批猛发仍被拒收 420 条,接上桶深 20 的令牌桶后为零。 书中参数为示意,平台数字注明文档与查阅日期;全部计算由书中程序生成,程序不读写文件、不联网;本书是非个人化经营建议,不是法律或合规意见,任何线上发送节奏的改动须由主事者人工复核放行。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.0031, 10.000, 10.031, 14.500, 14445, 270
| per-recipient bound: depth 45, rate 1 per 6 s | |
| window (s) most messages average per minute | |
| 6 | 46 460.000 |
| 60 | 55 55.000 |
| 600 | 145 14.500 |
| 3600 | 645 10.750 |
| 86400 | 14445 10.031 |
| long-run per minute | 10.000 |
| pause owed after a full burst | 270 s |
| burst share of a day's bound | 0.0031 |
查看完整验算程序
# Chapter 1. p13: a published per-recipient limit read as a token bucket.
# Source wording (Meta, "About the WhatsApp Business Platform", read on
# 2026-11-13): 1 message every 6 seconds to the same user; up to 45
# messages in a 6-second burst; after a burst, wait the time those
# messages take at the normal rate. This program reads that wording as
# a bucket of rate 1/6 per second and depth 45; the depth is the book's
# reading, not a figure Meta states as such. It prints the most
# messages one recipient could get in windows of several lengths, the
# implied average rate, and the pause owed after a full burst. The same
# rate-plus-burst shape drives the two buckets of RFC 2697.
from fractions import Fraction as F
RATE, DEPTH = F(1, 6), 45
def most(t):
return DEPTH + int(RATE * t)
print("per-recipient bound: depth %d, rate 1 per 6 s" % DEPTH)
print("window (s) most messages average per minute")
for t in (6, 60, 600, 3600, 86400):
m = most(t)
print("%10d %13d %18.3f" % (t, m, float(F(m * 60, t))))
print("long-run per minute: %.3f" % float(RATE * 60))
print("pause owed after a full burst: %d s" % int(DEPTH / RATE))
print("burst share of a day's bound: %.4f" % (DEPTH / most(86400)))唯一数据源与引用
范雅福(Fan, Y.). (2026). 《私域通道防封号速率控制论、令牌桶限流与平台公示上限内的同意制触达吞吐母典》第 1 章「平均合规的突发:滑动窗口上限与令牌桶的 b + rW 界」(版本 1.0.0). 5D Library. DOI 待发布
DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-271 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026271,
author = {Fan, Yafu},
title = {Rate Control for Private Messaging Channels without Account Bans: Token-Bucket Shaping, Platform-Published Limits and Consent-Based Reach Throughput},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}