12Performance & scalability

Measure first. Then make it fast.

Performance work goes wrong when it starts with a favorite technique. I start with measurement (real-user metrics, traces, query plans, load tests), find the few bottlenecks that actually matter, fix them, and leave instrumentation in place so regressions show up before users notice.

Ways to engage

  • Fixed-price performance audit with prioritized fixes
  • Fix-and-verify engagement ahead of a launch or seasonal peak
All engagement models

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.

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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

  1. Pages feel slow and your Core Web Vitals report is mostly red.
  2. The database CPU spikes every day at the same time.
  3. A launch or seasonal peak is coming and you're not sure the system will hold.
  4. Adding bigger servers stopped helping.

What I can own

  1. Profiling across the stack: browser, API, database and external calls
  2. Query optimization: indexes, query plans, N+1 elimination and read replicas
  3. Caching strategy across HTTP, CDN, application and data layers, with correct invalidation
  4. Frontend performance: Core Web Vitals, bundle size, rendering strategy, images and fonts
  5. Concurrency and throughput: connection pools, queues, back-pressure and rate limiting
  6. Load testing and capacity planning

Deliverables

What you receive.

Concrete outputs, all in your accounts and repositories, written for the people who will maintain them.
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

  1. 01

    Measure real behavior

    Collect real-user metrics and production traces before forming opinions.

  2. 02

    Find the constraint

    Identify the one or two bottlenecks that dominate. Optimizing anything else is wasted effort.

  3. 03

    Fix and verify

    Ship targeted changes and confirm the gain against the baseline under realistic load.

  4. 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

LighthouseWebPageTestChrome DevToolsReal-user monitoring

Backend

OpenTelemetrypprofdotTraceasync-profiler

Data

EXPLAIN ANALYZEpg_stat_statementsMongoDB profilerRedis

Load

k6LocustGatling

Questions

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