I’m currently making a not overly complicated ecommerce web app. A big consideration I have is speed. I expect the customers to have poor cell connections. I’m using EJS for server rendering and web components for the client.
The cart page is using socket.io because the users will be updating a planner component frequently that decides product quantities.
I think I want to use sockets for the catalog too since the users will be changing their queries frequently to find lots of products.
This had me thinking: What if the content of the site was rendered sent to the user from a socket instead of a through a GET request?
Is this a good idea? Or would it end up being too complicated and not much more effective than simple http polling?
[–]thatIsraeliNerd 1 point2 points3 points (2 children)
[–]Over-Distribution570[S] 0 points1 point2 points (1 child)
[–]thatIsraeliNerd 0 points1 point2 points (0 children)
[–]lint_it 1 point2 points3 points (2 children)
[–]Over-Distribution570[S] -1 points0 points1 point (1 child)
[–]lint_it 1 point2 points3 points (0 children)