I have a robot that is contolled with a local UI via a 9 pin serial connection and I would like to make it controllable via a web page, but only one user should be able to interact with it at any time. I'm still thinking about how to use WCF communications between the web server and the local PC, and might ask about that at a later time. For now I'm tying to get the web server and front end to queue users who want to control the robot, first come, first serve.
The only thing I have thought about so far is to store user sessions in the order they request to control the robot, and then use AJAX to let each one know when it's their turn. I want to show the user where their place is in the queue and move users forward in the queue when others are done, abandon their sessions, or timeout during their turns.
Does this seem like the right idea? Have you already done this and have a good method that works? I'm open to hearing about how it was done on any platform as long as the concepts also apply to doing it with ASP.NET.