Im trying to figure out what a highly scalable solution (serving multiple users of 10000+) would be.
Goal: What I want to achieve is to write a stream of mouse coordinates to a binary file to a server, i.e. the server is directly saved to the server from the userinteraction once stream is closed. The coordinates should be pushed every 20ms (about 50fps) to create a close representation of the mouse movement.
a) I know that nodeJS can be used to do a writestream, but I am not sure if such a high frequency of updates can be handled by such a structure - also if this is done by multiple users, this approach could fall apart.
b)The other possibility would be to locally write the file into binary and then upload it to the server afterwards.
Can anyone comment on the capabilities of these approaches and if there is another method that can be used?