跳到正文
cccskills
免费在 GitHub 公开

outbox-pattern

Load for reliable post-commit messaging, domain/integration event delivery, transactional outbox tables, dispatch workers, retries, idempotent consumers, duplicate delivery, or dual-write failure; not for synchronous in-process events with no external side effect.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md2.0 KB
  • resources/database-schema.md1.7 KB
  • resources/dispatcher-patterns.md2.3 KB
  • resources/entity-model.md2.1 KB
  • resources/processor-configuration.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

ABOUTME: Transactional outbox pattern skill for reliable at-least-once event delivery. ABOUTME: Covers OutboxMessage entity, OutboxProcessor, retry/dead-letter, and specialized variants.

Outbox Pattern

Non-Inferable Rules

  1. OutboxMessage uses UUID v7 (Guid in C#, uuidv7() in PostgreSQL) — not auto-increment.
  2. TryMarkAsProcessing uses optimistic concurrency — returns bool, no exceptions on contention.
  3. Retry delay formula: InitialRetryDelaySeconds × 2^retryCount, capped at MaxRetryDelaySeconds.
  4. After MaxRetries exhausted, status transitions to DeadLettered — messages stay in DB indefinitely for monitoring.
  5. LoggingOutboxMessageDispatcher is the default no-op — real dispatchers must be registered to replace it.
  6. Three specialized outbox variants exist: general OutboxMessage, PolicyChangeOutbox (settings), PdsSyncOutbox (AT Protocol federation). Each has its own entity and repository.
  7. OutboxProcessor polls on a PeriodicTimer — not event-driven. Default interval: 5 seconds.
  8. Dispatchers must be idempotent — at-least-once delivery means duplicates are possible.

Resources

  • resources/entity-model.md — OutboxMessage fields, status lifecycle, EF configuration
  • resources/processor-configuration.md — OutboxProcessor settings, retry strategy, dead-letter
  • resources/dispatcher-patterns.md — IOutboxMessageDispatcher, specialized variants
  • resources/database-schema.md — Indexes, queries, database conventions

Related

  • docs/internal/OUTBOX_PATTERN.md
  • docs/internal/ARCHITECTURE.md (Background Services section)
  • .agents/skills/dotnet-efcore-guidelines/SKILL.md
  • .agents/skills/clean-architecture-rules/SKILL.md

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Load for Blazor/MudBlazor UI changes involving forms, dialogs, focus, keyboard navigation, landmarks, ARIA, color contrast, RTL-safe styling, or WCAG 2.2 AA tests; not for backend-only changes.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

Load when a task asks to research, verify, compare, or look up framework/package behavior, release notes, standards, RFCs, CVEs, or unfamiliar APIs; use repository evidence first, then official docs, and not for codebase navigation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

aspire

免费

Load for Aspire AppHost work: start/stop/wait resources, inspect dashboard/logs/traces, add integrations/resources, rebuild a service, run isolated worktrees, or diagnose Aspire orchestration; not for plain dotnet apps, container-only deployments, or cloud deployment.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

Load for authentication or authorization changes involving BFF cookies/tokens, JWT validation, claims/user ID extraction, policies, handler access checks, impersonation, or 401/403 bugs; not for UI affordance gating alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

Load for Blazor BFF server work involving YARP proxy routes, cookie sessions, access-token forwarding/refresh, downstream API calls, BFF handlers, or browser-to-API auth failures; not for client component rendering or API JWT validation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

Load when editing Blazor `.razor.css`, scoped selectors, `::deep`, BEM class names, RTL/logical CSS properties, or styling nested MudBlazor components; not for global design tokens or non-Blazor CSS.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月20日 更新

查看 islamu-ngo 的全部技能

报告此技能的问题