effect-ts-concurrency
Installation
SKILL.md
Effect-TS Concurrency
Overview
Effect-TS provides lightweight fibers for high-performance concurrency. The core principle is explicit control: always bound parallelism to prevent resource exhaustion.
When to Use
- Processing large arrays of effects (e.g.,
Effect.all,Effect.forEach) - Rate limiting external API calls or database connections
- Coordinating work between background processes (fibers)
- Signaling completion or state changes across different parts of the app
When NOT to use:
- Simple sequential operations
- When standard
Promise.allis sufficient (though Effect is usually preferred for consistency)
Core Pattern: Bounded Parallelism
Unbounded parallelism is the most common source of "Too many open files" or "Connection timeout" errors.