Skip to main content

measure-a-queue-backlog

Measure queue backlog through work count, age, arrival, completion, retry, and capacity signals. Use when asynchronous processing may be delayed or unable to catch up.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
3
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
measure-a-queue-backlog
category
data
description
Measure queue backlog through work count, age, arrival, completion, retry, and capacity signals. Use when asynchronous processing may be delayed or unable to catch up.
# measure-a-queue-backlog Age and drain capacity usually reveal more than a single approximate message count. ## Procedure 1. Define the queue, work types, delivery behavior, priority, and user-facing deadline. 2. Capture ready, delayed, in-flight, retried, and dead-letter counts. 3. Measure oldest and percentile age from original enqueue time. 4. Calculate arrival, successful completion, failure, retry, and net growth rates. 5. Segment by safe work class, tenant tier, priority, and consumer pool where useful. 6. Compare backlog with concurrency, processing time, dependency health, and capacity limits. 7. Estimate drain time under current and credible restored throughput. 8. Save a backlog report with uncertainty, impact, and the next capacity action. ## Guardrails - Broker counts may be approximate and should not be treated as exact inventory. - Retries can inflate throughput while no business work completes. - Do not expose sensitive payload attributes as metric labels. ## Done - A backlog report records count, age, rates, and estimated drain time - Broker values are verified against consumer and business outcomes - Retry and dead-letter work are reconciled separately
在 GitHub 查看