Hi all!<br>
<br>
I am preparing to write a server application (you may think of it as an online game server) with twisted, but I am worrying about it&#39;s performance and how to do it correctly.<br><br>For example..<br><br>
1. UDP or TCP,which should I choose to gain higher performance?<br>
<br>
2. Should I catch data in memory instead of write it to db immediately?<br>
<br>
3. Could I make it run on cluster if cache data in memory ―― I think it might be quit hard to exchange data between instances of the server if I cache data in memory.<br>
<br>
4. How to make hot backup?<br>
<br>
5. Garbage collection might make the server halt for a moment<br>
<br>
6. What is happening in a computer when an IP package received?<br>
<br>
7. Could I get some inspiration from how people write web server?<br><br>8. If i use an separate physical server to deploy the database, could I gain some performance improvement?&nbsp; Or the cost of communication between the db and the server could hurt the total performance?<br>

<br>
……<br>
<br>
And so on..<br>
<br>
Also, is there any classical books talking about these kind of issues?&nbsp; Thanks a lot