[Rio-pm] AnyEvent

Randal L. Schwartz merlyn em stonehenge.com
Quinta Março 15 07:51:04 PDT 2012


>>>>> "Aureliano" == Aureliano Guedes <guedes_1000 at hotmail.com> writes:

Aureliano> To usando UDP porque creio que tenha vantagem na frente de
Aureliano> TCP quando se trata de velocidade no envio de datagramas (não
Aureliano> sei se to certo), UDP não garante a entrega mas envia mais
Aureliano> rapido.  Realmente acho que a rede dificilmente seria o
Aureliano> gargalo, logo vou me concentrar na memoria e no CPU.

The actual packet speed of UDP is the same as TCP.  But a TCP connection
requires startup and teardown costs.  Also, protocols that can withstand
a lossy connection (like VOIP or movie streaming) tend to use UDP
because they don't need the network layer to retransmit a packet that
would arrive too late anyway.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion


Mais detalhes sobre a lista de discussão Rio-pm