message-broker-selection
Select a message broker (Kafka / RabbitMQ / NATS / SQS+SNS / Pub/Sub / Service Bus / Redis Streams / Pulsar / Kinesis) based on throughput / ordering / durability / delivery / replay / fan-out / ops / cost. Trade-offs explicit.
What this skill does
# Message Broker Selection
You pick a message broker for a workload. No broker is universal; each has sweet spots. Trade-offs stated honestly.
## Core rules
- **No default broker** — workload-driven
- **Ordering, delivery, durability are trade-offs** — not stackable without cost
- **Managed vs self-hosted matters** — ops burden is real
- **Replay is a superpower** — log-based vs queue-based is a fundamental divide
- **Hybrid valid** — different brokers per workload class is common
- **No fabricated workload** — work from supplied facts
## Input handling
| Dimension | Required | Default |
|---|---|---|
| **Workload description** | Yes | — |
| **Expected throughput** | Yes | — |
| **Delivery guarantee needed** | Yes | — |
| **Ordering requirement** | No | Asked |
| **Replay needs** | No | Asked |
| **Multi-consumer / fan-out** | No | Asked |
| **Cloud vs on-prem** | No | Asked |
| **Team operational capacity** | No | Asked |
## Phase 1 — Setup
```
**Workload**: [what messages, what volume]
**Throughput**: [msg/s peak + sustained]
**Message size**: [bytes typical / max]
**Delivery**: [at-most-once / at-least-once / exactly-once]
**Ordering**: [global / per-key / none]
**Replay**: [needed / not needed]
**Fan-out**: [1:1 / 1:N / N:N]
**Retention**: [hours / days / weeks]
**Cloud**: [AWS / GCP / Azure / on-prem / multi-cloud]
**Team capacity**: [managed-only / some ops / full ops]
**Existing ecosystem**: [any broker already in use]
```
Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/message-broker-selection/`).
## Phase 2 — Broker catalog
### Apache Kafka
**When to use**: high throughput / replay critical / event streaming / log-based retention / ordered per-partition
**When not**: very low throughput / simple work-queue / team without Kafka ops capacity (or use managed — Confluent Cloud / MSK / Aiven)
**Delivery**: at-least-once default; exactly-once via idempotent producer + transactions (within Kafka scope only)
**Ordering**: per-partition
**Replay**: yes (log-based, tunable retention)
**Ops burden**: high self-hosted; low managed
**Cost model**: node-hours + storage + egress; can be expensive at scale
### RabbitMQ
**When to use**: work queues / complex routing (topic/direct/fanout/headers) / RPC-over-queue / moderate throughput
**When not**: streaming / replay needed / very high throughput
**Delivery**: at-least-once via ack + publisher confirms
**Ordering**: per-queue
**Replay**: no (delete-after-consume unless using streams plugin)
**Ops burden**: moderate; plugins increase it
**Cost model**: node-hours; cheap at small-to-mid scale
### NATS + JetStream
**When to use**: low-latency / lightweight / Kubernetes-native / edge / streams + key-value + object-store combined
**When not**: massive retention / complex routing preferences
**Delivery**: at-most-once (core NATS); at-least-once + exactly-once (JetStream)
**Ordering**: per-stream + per-subject
**Replay**: yes via JetStream
**Ops burden**: low; single binary
**Cost model**: node-hours; efficient
### AWS SQS + SNS
**When to use**: AWS-native / simple queue (SQS) + fan-out (SNS) / zero-ops / low-to-moderate throughput
**When not**: replay / strict ordering beyond FIFO queues / very high per-partition throughput
**Delivery**: at-least-once (standard), exactly-once (FIFO)
**Ordering**: none (standard); per-group (FIFO)
**Replay**: no (once consumed, gone; use DLQ for failures)
**Ops burden**: minimal (managed)
**Cost model**: per-request + data transfer; cheap at low volume
### Google Pub/Sub
**When to use**: GCP-native / global / high throughput / push + pull / zero-ops
**When not**: strict ordering across topic (use ordered delivery per key but cost rises) / replay beyond retention window
**Delivery**: at-least-once; exactly-once subscription mode available
**Ordering**: with ordering keys (opt-in, perf impact)
**Replay**: seek + snapshots within retention
**Ops burden**: minimal
**Cost model**: per-GB + per-op
### Azure Service Bus
**When to use**: Azure-native / sessions + scheduled + dead-letter / transactional messaging
**When not**: high-throughput streaming (use Event Hubs)
**Delivery**: at-least-once; peek-lock ack model
**Ordering**: per-session
**Replay**: no (queue semantics)
**Ops burden**: minimal
**Cost model**: tier + ops; moderate
### Redis Streams
**When to use**: simple streaming / already running Redis / low-latency
**When not**: durability-critical workloads (Redis HA is possible but less robust than Kafka) / large retention
**Delivery**: at-least-once via consumer groups + XACK
**Ordering**: per-stream
**Replay**: yes within retention
**Ops burden**: moderate; AOF + replication discipline required
**Cost model**: memory-bound; cheap at small scale
### Apache Pulsar
**When to use**: multi-tenant / geo-replication / tiered storage / both queue + stream semantics
**When not**: small team (operational complexity) / simple workloads (Kafka / RabbitMQ simpler)
**Delivery**: at-least-once; exactly-once
**Ordering**: per-partition
**Replay**: yes (tiered storage enables long retention at lower cost)
**Ops burden**: high (BookKeeper + ZooKeeper / metadata store)
**Cost model**: node-hours; tiered storage reduces long-retention cost
### AWS Kinesis (Data Streams)
**When to use**: AWS-native streaming / Kafka-like semantics / KCL consumers
**When not**: non-AWS / very low throughput (SQS cheaper)
**Delivery**: at-least-once
**Ordering**: per-shard
**Replay**: yes within retention (up to 365 days)
**Ops burden**: minimal (managed)
**Cost model**: shard-hour + PUT payload
## Phase 3 — Decision factors
| Factor | What it captures |
|---|---|
| **Throughput fit** | Can broker handle sustained + peak msg/s? |
| **Ordering match** | Matches required ordering? |
| **Delivery match** | Provides required guarantee? |
| **Replay capability** | Log-based vs queue-based |
| **Fan-out model** | 1:N / N:N support |
| **Durability** | Replication + fsync options |
| **Operational burden** | Ops capacity vs broker complexity |
| **Cloud fit** | Native option available? |
| **Cost envelope** | Cost per msg + retention cost |
| **Ecosystem fit** | Already-used broker / team familiarity |
Score each broker 1–5 per factor against the workload.
## Phase 4 — Hybrid consideration
Multi-broker is common:
- **Kafka for event streaming + SQS for work queues**
- **Pub/Sub for ingestion + BigQuery for analytics**
- **NATS for internal + webhooks / REST for external**
Recommend splits when one broker doesn't fit all workload classes.
## Phase 5 — Recommendation
One paragraph:
- **Chosen broker (or hybrid)**
- **Why**: top 2–3 factors
- **Trade-offs accepted**: what the choice gives up
- **Escape hatch**: migration path if wrong
- **Managed vs self-hosted**: explicit call
## Phase 6 — Diagrams
### Broker-fit radar
```mermaid
xychart-beta
title "Brokers across decision factors (1-5)"
x-axis ["Throughput", "Ordering", "Delivery", "Replay", "Fan-out", "Ops", "Cost", "Cloud"]
y-axis "Score" 0 --> 5
bar [5, 4, 5, 5, 4, 2, 3, 4]
bar [3, 4, 4, 1, 5, 4, 4, 4]
bar [3, 2, 4, 1, 5, 5, 5, 5]
```
Bars = Kafka / RabbitMQ / SQS+SNS (or fill based on candidates).
### Topology
```mermaid
graph LR
P[Producers] --> B[(Broker topic/queue)]
B --> C1[Consumer A]
B --> C2[Consumer B]
C1 -.dead-letter.-> DLQ[(DLQ)]
```
## Phase 7 — Diagram rendering
Per `diagram-rendering` mixin.
## Phase 8 — Report assembly and approval
```markdown
# Message Broker Selection: [Workload]
**Date**: [date]
**Workload**: [...]
**Recommended broker**: [...]
**Managed / self-hosted**: [...]
## Scope
[Workload, throughput, delivery, ordering, retention, cloud, team]
## Broker Catalog
[Options evaluated]
## Decision Factors
[Per-factor scoring]
## Hybrid Assessment
[If hybrid]
## Recommendation
[Chosen + trade-offs + escape hatch]
## Topology
[Producers, broker, consumers, DLQ]
## Diagrams
[Broker-fit radar + topology]
## Hand-oRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.