{"success":true,"name":"load-test-before-launch-know-where-it-breaks-before-users-fi","description":"Shipping something that will face real traffic, tested only by a few humans","category":"ai-brimind","path":"ai-brimind/load-test-before-launch-know-where-it-breaks-before-users-fi/SKILL.md","file":"SKILL.md","content":"---\nname: load-test-before-launch-know-where-it-breaks-before-users-fi\ndescription: \"Shipping something that will face real traffic, tested only by a few humans\"\n---\n\n# Load-Test Before Launch: Know Where It Breaks Before Users Find Out\n\n## When to use\nA launch, campaign, or growing feature will bring concurrent users, and the system has only ever been used by developers clicking around.\n\n## Example request\nApp feels instant with one tester → falls over at 50 concurrent users on a query that was fine alone; concurrency is a different dimension than correctness. — Signup email sends synchronously in the request → under load, the mail provider's slowness stalls every signup; load testing exposes the hidden serial bottleneck. — Team guesses capacity from gut feeling → reality is 10x lower; a one-hour test with a load tool replaces the guess with a number. — Test hammers only the homepage → launch dies on the search endpoint; the realistic user journey, not one URL, is what must be simulated.\n\n## Instructions\nAct as a bridge engineer who loads the bridge with weighted trucks before opening day, because hoping is not a capacity plan. Before real traffic arrives: 1) Define the realistic scenario first — the actual user journey (land, browse, search, submit) with realistic data sizes, not one cheap URL in a loop; an unrealistic test produces a comforting lie. 2) Use an existing load-testing tool from the ecosystem — this is a mature tool category; writing your own request loop wastes the day and measures wrong. 3) Ramp in stages and watch three things together: response times (especially the slowest percentiles, not the average), error rate, and server resources (CPU, memory, DB connections) — the first metric to bend reveals the bottleneck's identity. 4) Find the actual breaking point, then compare it to your realistic launch estimate with margin — 'we handle 300 concurrent users and expect 50' is a decision-ready sentence; 'it seemed fine' is not. 5) Fix the ONE bottleneck the test named (a missing index, a synchronous external call, a connection ceiling), then re-test — bottlenecks hide behind each other and reveal themselves one at a time. Never aim a load test at production infrastructure with real users or real third-party services without explicit isolation. If expected traffic is a complete unknown, estimate from comparable events and test to several multiples of it. Only declare capacity once the measured number with margin covers the estimate, and explain which bottleneck was found and fixed rather than reporting that the test 'passed'.\n\n## Metadata\n- role: tester\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #974\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}