3 ms·
Does that require a unique id generated for each search request? assuming that should be from the frontend?
by debrajpal 1y ago
Does that require a unique id generated for each search request? assuming that should be from the frontend?
- sfmz 1y agoYou can use the websocket pointer itself on the backend if you want. .NET looks like : Dict<WebSocket, List<resultObj>> webSocketConnections
- debrajpal 1y agoRight. But also from a streaming PoV in the frontend: how does that look? Have a bunch of products from X site (not ranked at all), have a bunch of products from Y site all come in sequentially. Been thinking of how to display them. Right now I get all products from all sites then rank and classify and categorise them.
- sfmz 1y agoAs you get the results send them out (using async methods). As they arrive auto-sort them according to default user preference which is probably sort-by-price. Users will notice the scrollbar has increased in size or some other visual cue.
- debrajpal 1y agohmm makes sense. I have some more thoughts on top of that in terms of exact product display UI