返回顶部
m

message-queues

Deep message queue workflow—queue vs topic, ordering and partitions, retries and DLQ, idempotency, backpressure, observability, and failure design. Use when integrating workers, event buses, or debugging poison messages and lag.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
97
下载量
0
收藏
概述
安装方式
版本历史

message-queues

# Message Queues (Deep Workflow) Queues decouple producers and consumers—and introduce **duplicates**, **ordering surprises**, **poison messages**, and **lag**. Make **delivery semantics** and **failure handling** explicit. ## When to Offer This Workflow **Trigger conditions:** - Choosing Kafka vs RabbitMQ vs SQS vs Pub/Sub - Consumer lag, DLQ growth, reprocessing needs - “Exactly-once” expectations—need alignment on reality **Initial offer:** Use **six stages**: (1) delivery semantics, (2) topology & partitions, (3) message contract, (4) consumers & retries, (5) ops & scaling, (6) failure drills). Confirm cloud and ordering requirements. --- ## Stage 1: Delivery Semantics **Goal:** Choose at-most-once, at-least-once, or effective-once via idempotency. ### Questions 1. Can duplicate processing break invariants? 2. Is ordering global, per-entity, or unnecessary? 3. Latency vs durability trade-offs **Exit condition:** One paragraph per pipeline stating semantics. --- ## Stage 2: Topology & Partitions **Goal:** Throughput and ordering align—ordering only within partition when using Kafka-style partitions. ### Practices - Partition key often equals business key (e.g., user id) - Watch hot partitions --- ## Stage 3: Message Contract **Goal:** Versioned events or commands with schema registry. ### Practices - Envelope: id, type, version, timestamp - Payload size limits; reference blobs by id --- ## Stage 4: Consumers & Retries **Goal:** Exponential backoff + jitter; DLQ with reason; replay tooling owned. ### Pitfalls - Retries can reorder unless single-threaded per partition --- ## Stage 5: Ops & Scaling **Goal:** Lag metrics, consumer offset health, rebalance awareness (Kafka). --- ## Stage 6: Failure Drills **Goal:** Kill consumer mid-batch; duplicate publish intentionally; validate idempotency. --- ## Final Review Checklist - [ ] Delivery semantics and idempotency explicit - [ ] Partitioning/ordering strategy documented - [ ] Versioned message contract - [ ] Retry, DLQ, replay documented - [ ] Lag metrics and alerts; capacity plan ## Tips for Effective Guidance - **Exactly-once** end-to-end is rare—design for at-least-once + idempotent handlers. - Challenge global ordering requirements—they cost scale. - Visibility timeouts (SQS) differ by product—read the vendor docs. ## Handling Deviations - **Transactional outbox** when you need DB + queue consistency without dual writes.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 message-queues-1776028752 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 message-queues-1776028752 技能

通过命令行安装

skillhub install message-queues-1776028752

下载 Zip 包

⬇ 下载 message-queues v1.0.0

文件大小: 1.95 KB | 发布时间: 2026-4-13 11:01

v1.0.0 最新 2026-4-13 11:01
message-queues v1.0.0

- Initial release of the message-queues skill.
- Provides a deep workflow for working with message queues, topics, partitions, retries, DLQ, idempotency, and observability.
- Includes guidance for choosing queue technologies, handling ordering, debugging lag and poison messages, and clarifying delivery semantics.
- Features a structured six-stage workflow with review checklists and practical tips.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部