基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Fujigo-Software/f5-framework-claude --skill messaging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | messaging |
| description | Message queues, events, and async communication patterns |
| category | skill |
| allowed-tools | Read, Write, Glob, Grep, Bash |
| user-invocable | true |
| context | inject |
| version | 1.0.0 |
Asynchronous communication patterns for building scalable, decoupled distributed systems. Messaging enables services to communicate without direct coupling, improving reliability and scalability.
| Type | Description | Use Case | Examples |
|---|---|---|---|
| Point-to-Point | One sender, one receiver | Task distribution | RabbitMQ, SQS |
| Pub/Sub | One sender, many receivers | Event broadcasting | Kafka, Redis Pub/Sub |
| Request/Reply | Synchronous over async | RPC-style calls | RabbitMQ RPC |
| Event Streaming | Ordered, replayable log | Event sourcing | Kafka, Kinesis |
| Guarantee | Description | Trade-off |
|---|---|---|
| At-most-once | Fire and forget | May lose messages |
| At-least-once | Retry until acknowledged | May have duplicates |
| Exactly-once | Deduplicated delivery | Complex, higher latency |
Core messaging concepts:
Message queue implementations:
Event-driven patterns:
Distributed system patterns:
Ensuring message delivery:
Production considerations:
| Feature | RabbitMQ | Kafka | SQS | Redis |
|---|---|---|---|---|
| Model | Queue | Log | Queue | Queue/Pub-Sub |
| Ordering | Per-queue | Per-partition | FIFO option | Per-queue |
| Persistence | Durable | Always | Always | Optional |
| Replay | No | Yes | No | No |
| Throughput | High | Very High | High | Very High |
| Latency | Low | Low | Medium | Very Low |
Producer → Queue → Consumer (Point-to-Point)
Producer → Exchange → Queue → Consumer (RabbitMQ)
Producer → Topic → Partition → Consumer Group (Kafka)
Publisher → Channel → Subscribers (Pub/Sub)
# In f5-config.yaml
messaging:
broker: rabbitmq
queues:
- name: orders
durable: true
dlq: orders-dlq
events:
- topic: order.placed
retention: 7d