[xSocket-develop] question about designing a server and server push
Status: Inactive
Brought to you by:
grro
|
From: Lenjoy <mar...@gm...> - 2008-08-05 13:55:27
|
Dear xSocket develop folks, question about designing a lightweight server, which can be on HTTP or TCPor UDP, whatever, the client may not be PC, e.g. cellphone or other devices. the client sends request to server and wait the response, the response should be as soon as possible, the server need to deal with some Database job. currently, there are two popular methods to achieve that. 1. client checks the server in period, if any update, the server give the updated response back. 2. server push, when any update in server, this is a nice user experience for client. The main concern is that the server need to keep the connection, this may be a heavy load for server, another problem is for the clients which are not PC, they need to keep the connection always, which may be wasting money for some services. if using xSocket server, any effective solution for this purpose? Maybe xSocket is not the best choice, any other Java server or C++ or C server to achieve that? Any comments and suggestion are appreciated. -- Lenjoy |