go-idempotent-retry-patterns
CommunityReliable retry logic for Go SDK resilience.
AuthorPremModhaOfficial
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides robust retry mechanisms for Go SDK operations to ensure resilience against transient errors and network issues.
Core Features & Use Cases
- Error Retry Predicate: Implements a function to determine if an error is retryable based on sentinel comparisons and error types.
- Context-Aware Backoff: Provides a pattern for exponential backoff with jitter that respects context cancellation, preventing goroutine leaks.
- Idempotency Support: Includes guidance on using message IDs for server-side deduplication with JetStream and header-based idempotency for HTTP.
- Use Case: Ensuring message publishing retries do not cause duplicate data insertion in high-reliability systems.
Quick Start
Integrate the provided IsRetryable predicate and executeWithRetry function into your Go application to handle transient errors gracefully during message publishing.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-idempotent-retry-patterns Download link: https://github.com/PremModhaOfficial/sdk-pipeline/archive/main.zip#go-idempotent-retry-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.