[Twisted-Python] How could I add reliability to a udp client

Eddy Xu eddyxu at 126.com
Thu Nov 3 00:26:19 EST 2005

 :-) Thank you. But i have to implement a heart beat to make sure that
all servers are "alive". Is it possible to use TCP in an easy way? Let
me tell you more about my client app? :-) The client maintains a command
queue that should be sent to different servers, and it also should know
the status of the servers. So i choose to use UDP for commands sending
and heart beating. Would you like to give me some advises to improve the
model? Thx again.

Jean-Paul Calderone 写道:
> On Thu, 03 Nov 2005 09:03:48 +0800, Eddy Xu <eddyxu at 126.com> wrote:
>> The client just send short command messages. Do it need to connect with
>> the server? perhaps the UDP way is lighter?
> In other words, no? :) UDP is hard. *Sometimes* it is a valuable
> optimization. Treat it as such: do not use it unless it is easier than
> another solution, and do not consider switching to it until you have
> demonstrated a bottleneck which it may eliminate or alleviate.
> Jean-Paul
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list