Skip to content
SA

Paytm Payments Bank · 2019 — 2023

Cutting P95 page load for staff on constrained networks

Around 1,500 branch staff used an internal tool all day, on networks and hardware nothing like the ones it was built on. P95 page load was 7.1 seconds.

Case study

P95 7.1s → 4.3s (40% faster)

The problem

The application was built and tested on office connections, and it showed. At the branches, where the work actually happened, the 95th-percentile page load was 7.1 seconds — long enough to change how staff worked around the tool.

The constraint

The network was not mine to fix and the hardware was not going to be replaced. Whatever I changed had to reduce bytes on the wire and round trips, without a rewrite and without disrupting people mid-shift.

What I did

  • Measured at the 95th percentile rather than the average, because the average hid exactly the users who were suffering
  • Enabled Brotli compression to cut transferred bytes
  • Moved the tool onto HTTP/2 to remove head-of-line blocking across the many small requests the page made

The number

  • P95 page load fell from 7.1s to 4.3s, a 40% reduction
  • ~1,500 branch staff affected daily

What I would do differently

I would have set a performance budget tied to the branch network profile and enforced it in CI. The wins here were real but one-off; without a budget, the same regression creeps back in over the following year.

Stack

  • Brotli
  • HTTP/2
  • Node.js
  • MongoDB

Open to work

Hiring for something that has to stay fast under load?

I'm open to senior and staff full-stack roles, remote or in India. The quickest way to start is a short email about the problem you're trying to solve.

shreyalkhaniya97@gmail.comRésumé