HACKER Q&A
📣 debrajpal

Best way to keep users interested? as my search takes time


Hey,

so on my product Minar we search in real time across site on the internet for what sites have the product you want. on average for a product you have asked for we search in 10-20 stores, and some stores are faster to response, while others may be slower. Irrespective, the full search takes between 8-10 seconds which is when we serve all the results to the frontend. Now, I have wanted to stream this for a while, where as we collect products for a site, we send that over to the frontend. Essentially serve the results to the API.

But how will the streaming work, in terms of how it is presented to the user is what I am wondering for the next update. Any ideas people?

For reference, you can take a look at the product and search at: https://www.theminarnet.com


  👤 PaulHoule Accepted Answer ✓
Websockets.