[erlang-questions] How to handle a massive amount of UDP packets?

Johannes Huning <>
Tue Apr 17 23:00:52 CEST 2012

On 04/17/2012 10:57 PM, Dmitry Kolesnikov wrote:
> Hello,
> On Apr 17, 2012, at 11:45 PM, Johannes Huning wrote:
>> It's does nothing but to send the received Packet to a process
>> which is intended to do the actual handling, then it immediately
>> returns to receiving packets.
> It is faire to mentioned here that mailbox of destination process
> grows intensively if packet arrival rate higher then packet
> processing rate, as a consequence you'll get OOM.

Absolutely! Being aware of the risk we would include some protection
against that as well.

>> Should {active, true} prove to be the fastest way of doing planned 
>> things, we'll implement some different means of preventing a
>> system lock-up :)
> I am afraid that at the end your came up to flow control where
> {active,true} and {active, once} mixed together ;-)

Yes, that indeed was one way of doing things that came to mind.

Johannes Huning
Berlin, Germany

More information about the erlang-questions mailing list