跳到正文
原文
Upstash Blog· Sancar Koyunlu·· 2026-08-27AI 评分22

Upstash 如何为 QStash 优化数百万条定时任务调度

Optimizing QStash For Millions of Schedules

AI 导读

Upstash 将 QStash 的定时任务从进程内存搬到已有的 Redis 持久化队列,把每条 schedule 变成自我重排的持久任务。起因是一个客户把调度量从约 50K 在一个月内推到 700K,旧架构下一次重启要 17 分钟才能加载完,而基准测试显示 20,000 条 cron 加载耗时 5.15 秒,瓶颈在 O(n) 的 next fire time 查找。

来源:Upstash Blog · upstash.com