menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Screener.i...
source image

Dev

2w

read

168

img
dot

Image Credit: Dev

Screener.in Search API: A Performance Checkup! ๐Ÿ”Ž

  • The article examines the Screener.in stock screener API and highlights inefficient practices in the search functionality.
  • The search sends a new API call to the server for each keystroke made by the user.
  • This inefficient use of network resources leads to server and network overload.
  • To fix this issue, the article suggests debouncing, throttling, and client-side caching techniques.
  • Debouncing involves delaying API calls until the user has paused typing, using a timer with a delay period.
  • Throttling involves limiting the number of API calls over a specific time period and reducing server load.
  • Client-side caching stores results from previous searches directly in the user's browser and reduces network activity.
  • The article also recommends sending one big message with all the search information instead of lots of little ones.
  • Optimizing search functionalities is vital for building efficient applications.
  • The synergy of debouncing, throttling, client-side caching, and batch requests can dramatically improve search systemโ€™s performance.

Read Full Article

like

10 Likes

For uninterrupted reading,ย download the app