Encore Go Pub/Sub is a specialized agent skill designed to help developers build robust, event-driven, and decoupled microservices architectures using Encore's type-safe messaging primitives. It guides the setup of declarative, package-level topics and subscriptions, provides patterns for publishing and handling events asynchronously, and ensures proper configuration of delivery guarantees like At-Least-Once or Exactly-Once. This skill is ideal for implementing reliable background processing, pub/sub fan-out configurations, and static-analysis-compatible message broadcasting.
主な機能
01Asynchronous background worker registration and message subscription handlers
02Type-safe event publishing with pubsub.NewTopic and static analysis-compatible TopicRef references
03Idempotency and retry-safe handler patterns for reliable distributed messaging
04Declarative, package-level topic and subscription code generation
0525 GitHub stars
06Configurable delivery guarantees, including At-Least-Once and Exactly-Once semantics
ユースケース
01Offloading long-running, non-blocking tasks to background workers to improve API latency
02Decoupling microservices using event-driven communication (e.g., OrderCreated triggering notification services)
03Fanning out a single event to multiple independent background consumer handlers