timeouts
CommunityImplement timeouts to prevent infinite waits in distributed systems.
Software Engineering#database#distributed systems#HTTP#SLO#timeout#budget allocation#deadline propagation
Authorhung-phan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps in implementing timeouts to prevent infinite waits in distributed systems, ensuring that slow or unresponsive dependencies do not cause cascading failures.
Core Features & Use Cases
- Timeout Configuration: Configure timeouts for various stages of a request, including DNS resolution, TCP connection, TLS handshake, write request, read between chunks, and total wall-clock time.
- Deadline Propagation: Propagate deadlines across service boundaries to ensure that the overall operation does not exceed the specified Service-Level Objective (SLO).
- Budget Allocation: Allocate budgets for individual calls and ensure that the total budget does not exceed the SLO.
- Database Timeouts: Set timeouts for database queries to prevent long-running queries from holding resources indefinitely.
- HTTP Client Defaults: Set appropriate timeouts for HTTP clients to prevent hanging requests.
- Trade-offs Analysis: Analyze the trade-offs of implementing timeouts, such as the risk of spurious failures and the need for idempotency in certain scenarios.
- Common Pitfalls: Identify common pitfalls when implementing timeouts, such as not setting a total timeout, mistaking idle timeout for total timeout, and resetting the budget on retry.
- Use Case: Imagine you are designing a microservices architecture where you need to ensure that no service call hangs indefinitely. Use this Skill to implement timeouts and propagate deadlines across services.
Quick Start
Use the timeouts skill to set a timeout for a database query with a statement timeout of 2 seconds.
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: timeouts Download link: https://github.com/hung-phan/system-skills/archive/main.zip#timeouts 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 620,000+ vetted skills library on demand.