All jobs / Backend developer / Performance

Backend developer interview question · 3–5 years

The interviewer asks: “Where do you enforce rate limits?” Strongest answer?

The strongest answer

At the edge (gateway / mesh) by identity — user, API key, IP as a last resort — with a budget the app can also enforce on expensive routes. Limits are a product and a safety control, not a random 429.

Why it works

Exactly. Edge limits protect everyone; app limits protect a heavy endpoint (export, search). Key by principal or you punish a NAT.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions