golang-resilience
CommunityBuild robust Go services with resilience patterns.
Authorep0ll
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps developers implement reliable network communication by applying resilience strategies in Go services.
Core Features & Use Cases
- Circuit Breaker Implementation: Prevents cascading failures by controlling external service calls. For example, stopping repeated calls to a failing API.
- Timeout Management: Ensures each network boundary has appropriate deadlines, avoiding hangs and resource exhaustion. For instance, setting specific timeouts for database or API calls.
- Retry Mechanisms: Implements exponential backoff with jitter to handle transient errors efficiently, reducing call failures and improving stability.
- Bulkhead Isolation: Limits concurrent requests to dependencies, preventing resource starvation. For example, capping concurrent database queries.
- Hedged Requests: Sends simultaneous requests to multiple replicas to reduce latency and improve response time in critical paths.
- Fallback Strategies: Provides fallback responses or cached data when dependencies fail, ensuring service continuity.
Quick Start
Use the resilience patterns to improve the fault tolerance of your Go microservices by configuring timeouts, circuit breakers, retries, bulkheads, hedges, and fallbacks.
Dependency Matrix
Required Modules
gobreaker
Components
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: golang-resilience Download link: https://github.com/ep0ll/bons-ci/archive/main.zip#golang-resilience 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.