I need to create a server which sends the incoming data to the client side. Data is as network packets and depending on the token in this packet I have to send it to all the clients who are subscribed to that token. I am using tornado server to do this. So my questions are
- Shall I have a single IO loop to handle incoming data and sending it to clients? What if I use multiple IO loops?
- What if I use multiprocess? One process send data to clients and one to handle incoming data.
What will be the performance issues with both?