load-shedding

Implement priority-based load shedding policies for backend APIs and workers.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/marquesfelip/agents-and-skills --skill load-shedding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-shedding
Source: https://github.com/marquesfelip/agents-and-skills/tree/main/skills/load-shedding
Command: npx skills add https://github.com/marquesfelip/agents-and-skills --skill load-shedding

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Overload protection and graceful degradation for backend services, enabling systems to withstand traffic spikes without complete failures.

Core Features & Use Cases

  • Priority-based admission to preserve critical user flows during load
  • Adaptive shedding triggers based on latency, queue depth, and concurrency
  • Degraded outputs that provide useful responses when dependencies are degraded
  • Observability hooks for tuning and alerting

Quick Start

Configure and enable the load shedding policy to protect your service during a traffic spike.

Frequently Asked Questions about load-shedding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect backend APIs from crashing during traffic spikes?

Protect backend APIs from traffic spikes by implementing load shedding policies that enforce priority-based admission and graceful degradation, ensuring critical user flows survive while non-essential requests are dropped under heavy load.

What is graceful degradation for overloaded services?

Graceful degradation for overloaded services provides useful, degraded responses when dependencies fail, using adaptive shedding triggers based on latency and queue depth to prevent complete system failures during heavy load.

How do I prioritize critical requests when concurrency limits are reached?

Prioritize critical requests when concurrency limits are reached by implementing priority-based admission, which evaluates traffic and preserves critical user flows while rejecting or degrading lower-priority background workers.

Can I apply load shedding to background workers during latency alarms?

Yes, you can apply load shedding to background workers during latency alarms, using adaptive triggers based on queue depth and concurrency to enforce admission control and signal errors properly under heavy load.

Does this approach provide observability for tuning shedding policies?

Yes, this approach provides observability hooks specifically for tuning and alerting, allowing you to monitor load shedding triggers, degraded responses, and admission rates to optimize backend performance.

When should I implement adaptive load shedding triggers instead of static rate limiting?

Implement adaptive load shedding triggers instead of static rate limiting when your backend services face unpredictable traffic spikes, requiring real-time adjustments based on latency, queue depth, and concurrency to maintain availability.