12Performance & scalability
Measure first. Then make it fast.
Ways to engage
- Fixed-price performance audit with prioritized fixes
- Fix-and-verify engagement ahead of a launch or seasonal peak
Reference architecture
Finding the bottleneck, then removing it
Measure first, then fix what matters: edge caching, query plans, read scaling, queues for peaks and load tests to prove it. Scroll through the fixes.
0106
Measure real users first
Field data from real browsers shows which pages, and which users, are slow. Nothing changes until the bottleneck is measured rather than guessed.
- Core Web Vitals
- Real-user monitoring
- Lighthouse
0206
Serve from the edge
Immutable assets and cacheable pages come from the CDN with long cache lifetimes; the origin computes only what must be computed.
- CDN
- Cache-Control
- Immutable assets
0306
Fix the queries, then cache
Query plans expose missing indexes and N+1 patterns. Hot reads then come from Redis with explicit invalidation, never a guess about staleness.
- EXPLAIN ANALYZE
- Indexes
- Redis
0406
Scale reads, protect writes
Read replicas take reporting and search. Connection pools and rate limits keep the primary healthy when traffic peaks.
- Read replicas
- Connection pools
- Rate limits
0506
Absorb the peak
Slow work goes through a queue with bounded concurrency, so a spike becomes a short backlog instead of an outage.
- Queues
- Back-pressure
- Autoscaling
0606
Prove it before launch
Load tests replay realistic traffic against a capacity model, and traces confirm each fix and catch the next regression.
- k6
- Capacity planning
- OpenTelemetry
You might need this if
- Pages feel slow and your Core Web Vitals report is mostly red.
- The database CPU spikes every day at the same time.
- A launch or seasonal peak is coming and you're not sure the system will hold.
- Adding bigger servers stopped helping.
What I can own
- Profiling across the stack: browser, API, database and external calls
- Query optimization: indexes, query plans, N+1 elimination and read replicas
- Caching strategy across HTTP, CDN, application and data layers, with correct invalidation
- Frontend performance: Core Web Vitals, bundle size, rendering strategy, images and fonts
- Concurrency and throughput: connection pools, queues, back-pressure and rate limiting
- Load testing and capacity planning
Deliverables
What you receive.
- Performance baseline
- Current numbers from real users and synthetic tests, so every improvement is measurable.
- Bottleneck report
- The specific causes ranked by impact, with evidence: traces, query plans and flame graphs.
- Implemented fixes
- Changes shipped and verified against the baseline, not just a list of recommendations.
- Repeatable load tests
- Load scenarios modeled on real traffic patterns, runnable before every major release.
- Performance budgets
- Agreed thresholds wired into CI and monitoring so regressions are caught early.
How it runs
The approach, step by step
- 01
Measure real behavior
Collect real-user metrics and production traces before forming opinions.
- 02
Find the constraint
Identify the one or two bottlenecks that dominate. Optimizing anything else is wasted effort.
- 03
Fix and verify
Ship targeted changes and confirm the gain against the baseline under realistic load.
- 04
Guard against regressions
Budgets in CI and alerts in monitoring keep the system fast after the engagement ends.
Typical tools
Chosen per project for fit and longevity, not by habit.
Frontend
Backend
Data
Load
Production work
Where I’ve done this in production.
Related work
See it in practice
Questions
Keep exploring
Next step
Tell me what you’re building. I’ll tell you how I’d approach it.
Send a short brief. You’ll get a written reply from me within two business days — either a few clarifying questions, a suggested first step, or an honest “I’m not the right fit” with a pointer elsewhere.
Parth Patel
Senior full-stack engineer