distributed-systems-architecture

Solid

分布式系统架构专家 Owner — 当任务涉及消息队列、RPC、事件驱动、跨服务一致性、分布式锁/租约、交付语义、顺序、幂等、重试、补偿、分区、背压或故障注入时使用;要求把网络与重复执行视为常态并冻结可验证的不变量。

AI & Automation 263 stars 34 forks Updated 2 days ago AGPL-3.0

Install

View on GitHub

Quality Score: 85/100

Stars 20%
81
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Distributed Systems Architecture ## 职责 从系统级边界统一设计一致性、交付、顺序、幂等、重试、补偿、分区与背压。backend 负责领域流程,SRE 负责运行恢复,data 负责持久化;本 Skill 负责跨节点/跨服务语义。 ## DistributedSystemsArchitectureGate | 字段 | 要求 | |---|---| | consistencyModel | strong/eventual/causal/session 等选择、读写可见性和可接受陈旧窗口 | | deliverySemantics | at-most-once / at-least-once / effectively-once,禁止无证据承诺 exactly-once | | orderingPolicy | global/partition/key ordering、乱序窗口、重放规则 | | idempotencyModel | key、scope、TTL、结果缓存、并发重复和副作用边界 | | retryBudget | retryable 分类、backoff/jitter、总预算、deadline 与 retry storm 防护 | | compensationPlan | transaction/outbox/saga/补偿动作、不可补偿边界和人工恢复 | | partitionFailureMatrix | timeout、partial failure、lease loss、split brain、clock skew、dependency outage | | backpressurePlan | producer/consumer 速率、队列上限、drop/reject/degrade、dead letter 与恢复 | | durableBatchOrchestration | 数据源耗尽、持久 cursor/checkpoint、批次节奏、多 Worker 原子聚合、durable completion、Coordinator/callback 崩溃恢复 | ## 执行流程 1. 列出节点、服务、存储、broker 和外部系统的信任/失败边界。 2. 冻结业务不变量与可接受一致性,而不是先选中间件。 3. 为每条写路径定义 delivery/order/idempotency/retry/compensation。 4. 为 lease/lock/single-active 定义丢失资格后的 fail-safe,禁止继续副作用。 5. 建立正常、重复、乱序、延迟、丢失、分区、恢复与重放矩阵。 6. 将可观测字段绑定 request/event/idempotency/trace/attempt/partition。 7. 把验证映射到 unit/integration/failure-injection/load/recovery replay。 ## DurableBatchOrchestrationProbe 队列、批处理、导入导出或 fan-out/fan-in 流程声称“完整 run”时,必须验证: 1. 数据源是否分页/流式推进至可证明耗尽,并持久化 cursor/checkpoint。 2. 批次节奏、并发和背压是否有界,重试后不会重复扩大副作用。 3. 多 Worker 的 accepted/completed/failed 计数与聚合状态是否原子、幂等...

Details

Author
devcodex-labs
Repository
devcodex-labs/devcodex
Created
5 months ago
Last Updated
2 days ago
Language
JavaScript
License
AGPL-3.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

system-design

Design a production-ready system architecture from product goals, workload, reliability, security, and operational constraints. Use whenever the user asks for system design, architecture, distributed systems, service decomposition, capacity planning, scalability, high availability, SLOs, data flow, migration strategy, or tradeoff analysis—even if they only say "design the backend" or "how should this system be structured." Produce an explicit architecture specification before implementation; do not silently jump to code.

1 Updated 1 months ago
AVA-2568
AI & Automation Listed

arch

通爻网络分布式协议和多Agent架构讨论。用于讨论技术架构、协议设计、技术选型等问题。当��户提到架构设计、协议讨论、技术方案时使用。

0 Updated today
floccose-burner9185
DevOps & Infrastructure Listed

execution-discipline

在 DSH 长程/多工具会话中强制九条执行纪律,防止高频反模式重演:禁止无 wait 轮询、禁止把门禁拒绝当交付物抛回决策、外部研究先探测通道再极窄探针、探查派子代理不肉身 Read、子代理派发带进度回报协议、回合结束零悬挂收尾、上下文预算(回合合并+结果落盘)。用于接手长任务、等待子代理/后台任务、发起外部研究、收到 INVALID/FAIL/PARTIAL 门禁结果、收到"重复工具调用"系统警告、需要读取多个源码文件或大文件,以及任何需要"执行层不空转、不惊群、不绕门禁"的执行场景。不用于单轮小修改或无需持久化的临时问答。

3 Updated today
ooooooooooooooooooop