Back to all skills
Progress3 of 45
AsyncCritical

Prevent Waterfall Chains in API Routes

In API routes and Server Actions, start independent operations immediately, even if you don't await them yet.

api-routesserver-actionswaterfallsparallelization

Code Comparison

Incorrect (config waits for auth, data waits for both):typescript
Correct (auth and config start immediately):typescript

Why This Matters

Impact: 2-10× improvement. This optimization is classified as CRITICAL priority for production applications.