[erlang-questions] Slow UTP packets

Ovidiu Deac <>
Fri Jul 31 17:04:39 CEST 2009

On Fri, Jul 31, 2009 at 5:33 PM, Mihai Balea<> wrote:
> On Jul 31, 2009, at 10:16 AM, Ovidiu Deac wrote:
>> It makes sense but it doesn't look good. 1MB/s is not that much.
> I think it's the number of messages that really matter, not the total
> size...

The average size of the packet is 150B. That means about
7000messages/s. It shouldn't be that much.

>> ...and fast messaging between processes should be one of Erlang's strong
>> points.
>> Maybe I should use a passive socket instead.
> Using passive or {active, once} when dealing with sockets is always a good
> idea. However, while TCP will adjust the flow to accommodate your consumer's
> speed, UDP will simply just drop packets when you cannot process them fast
> enough.
> Just something to keep in mind.
> Mihai
Losing UDP packets I don't mind that much as having an application
which slows down under load. :)

More information about the erlang-questions mailing list