salvo-concurrency-limiter

Limits concurrent requests in Salvo apps via max_concurrency per route or handler.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-concurrency-limiter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-concurrency-limiter
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-concurrency-limiter
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-concurrency-limiter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps limit concurrent requests in Salvo applications to protect resources and prevent overload.

Core Features & Use Cases

  • Concurrency limiting is built into Salvo core and demonstrates per-route limits, per-endpoint customization, and safe defaults.
  • Combines with rate limiters and timeouts to prevent resource exhaustion and improve resilience.
  • Provides practical scenarios including file uploads, CPU-intensive tasks, external API calls, and background processing.

Quick Start

Add max_concurrency to the route or handler to cap simultaneous requests.

Frequently Asked Questions about salvo-concurrency-limiter

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

FAQPage Schema
How do I limit concurrent requests in a Salvo web application?

Limit concurrent requests in a Salvo application by applying the max_concurrency hoop to specific routes or handlers. This caps simultaneous requests per endpoint to prevent resource exhaustion and protect server stability.

Can I set different concurrency limits for file uploads and API endpoints in Salvo?

Yes, you can customize different concurrency limits for file uploads, API endpoints, and CPU-intensive tasks in Salvo. Per-route configuration allows you to apply specific max_concurrency values to individual handlers based on their resource requirements.

What is the difference between rate limiting and concurrency limiting for resource protection?

Concurrency limiting caps the number of simultaneous in-flight requests, whereas rate limiting controls the total number of requests over a time period. Combining both in Salvo prevents resource exhaustion and improves overall application resilience.

When do I need to use max_concurrency to protect server resources?

You need max_concurrency to protect server resources when handling CPU-intensive tasks, external API calls, or background processing. It prevents overload by capping simultaneous operations that would otherwise exhaust server capacity during traffic spikes.

Does limiting concurrent requests in Salvo work with timeout configurations?

Yes, limiting concurrent requests in Salvo works alongside timeout configurations. Combining max_concurrency limits with timeouts and rate limiters builds resilience by preventing both resource exhaustion from overload and hanging operations from stalled requests.