Prompt·Performance and scale·P09
Parallel work with no limit
Finds work run in parallel with no limit, which can swamp the database connections or an outside service.
Prompt
Examine places where work is parallelized or queued without explicit limits. Find cases where a speed optimization could overwhelm rate limits, memory, connection pools or a downstream service; propose and test concurrency bounds with realistic load.
- What it returns
- Each fan-out with its maximum width at realistic input, the downstream limit, and a load test with a bound.
- Skip it when
- Parallel work over a fixed, small list.
- Changes
- Changes nothing
- Sessions
- One session
- Tools
- Repository; a load-testing script pointed at a non-production copy.
- Also called
- Concurrency boundedness
Related prompts
More in Performance and scale.