Skip to main content
All interview theory questions
debouncemedium

What is the difference between debounce and throttle?

Answer

Debounce waits for activity to stop: the timer restarts on every call, so the function runs once after the quiet period. Throttle guarantees a steady rate: it runs at most once per interval no matter how often it's called. Debounce suits search-as-you-type and resize-end work; throttle suits scroll handlers and anything that must keep updating while the user is still going.

Points an interviewer listens for

  • Debounce: runs after activity stops; timer resets each call
  • Throttle: runs at a fixed maximum rate
  • Debounce → typeahead, resize end, autosave
  • Throttle → scroll, drag, pointer tracking

Reported at

Similar questions have been reported by candidates at Kuvaka Tech, Birla Pivot, FactWise, Ideas2IT Technologies, Pocket FM, Porter.

Now try answering it out loud

Interview practice mode times your spoken answer and checks it against the points above.

Practise this question