I have a auction website that works great with php and scheduler. The sheduler i guess works the same as polling.
This has served me great and still doing the job. BUT i want to level up and provide a better platform.
My question would be - Websockets and Nodejs.
Will websockets handle 300+ bidders (It will ever harly get over 500) in real-time as the same time with ease? On one server.
The data (payloads) it needs to update would be very small eg... bidding price.. and a few others maybe 1 - 12kb
Do you require load balancers at a certain amout of people?
Would would be the best approach be with Websockets (* my description might not make a 100% sense)
- Create rooms - so per auction id - isolate data per auction and avoid broadcasting to everyone unnecessarily
- Do i need to use redis for future scaling
- Because if i have 5000 items from previous auctions i dont want to "query" all of those, and only "query" the data for that auction id
- So would one by able to "group" the websocket data?
- Im just looking at this Realtime Data Update with NodeJS and WebSockets (bus only see emit - is there more functions)
- But refreshing all off the data could then cause a bottleneck?
- And then only emit to that room only?? Does wappler support rooms or do one need to use a different approach with an auction.
Please can anyone help me with some sort of a plan on how to approach this, as i have no knowledge of websockets...
As you @Teodor are the expert on this.. i would really value your input in this matter - as your head works in a way I can only dream off.. thank you so much and looking forward to everybody's input.