I've written a simple web sevice where an handheld device connects to a Twisted script on a server. The device sends data to the script, the script uses this data to query a MySQL db, the db content is sent back to the device. The script is based on the script written in this tutorial
how would a script like this handle a large amount of connections? in my head, its only limited by the server, the higher the server memory the higher the amount of connections you can handle. But will the script perform well with large amounts of connections? For every connectiong a new instance of the connection is made, and a new instance of the db is made for that connection when there is a query, so its all handled asynchronously i believe, so is the only performance limit the servers cpu power and memory? coping with high connection volumes is done by expanding your servers? for my service, a connection may remain open from anywhere between 1 - 3 hours, so its possible that the server memory will fill and crash the server.
also, does anybody know what the size of a connection instance would be?
probably more of a servers question than a Twisted question! but Thanks very much for reading!