Maybe worth adding throttling or debouncing on the client so that it sends the request after a few characters have been typed rather than sending a request on each character. That's what I remember is a standard practice with those searches.
Also, you might want to find a JS library to easily display those search results, or use something like Alpine.js with Tailwind and DIY.
Maybe worth adding throttling or debouncing on the client so that it sends the request after a few characters have been typed rather than sending a request on each character. That's what I remember is a standard practice with those searches.
Also, you might want to find a JS library to easily display those search results, or use something like Alpine.js with Tailwind and DIY.