Frontend & browser·JavaScript in the browser
you wait until the user stops typing for three hundred milliseconds and only then send the request.
Debounce
Delaying a call until a quiet period has passed, resetting the timer on every new event, so a burst produces exactly one call at the end. It is right when only the final state matters: search-as-you-type, autosave, resize handlers that recompute a layout. It is wrong for anything needing intermediate feedback, because during continuous input it produces no calls at all.