hanging on to open udp sockets.
chandru
chandrashekhar.mullaparthi@REDACTED
Sun Nov 13 07:55:01 CET 2005
On 12/11/05, Eric Merritt <cyberlync@REDACTED> wrote:
> Hello All,
>
> I have this requirement for a little app that sends udp datagrams to
> another host. For the moment I just want to concentrate on the
> sending. So I am assuming that I need to hold on to the open udp
> socket after creation and reuse it as work comes in. This presupposes
> a modest pool of worker processes. This in turn presupposes a
> supervisor that watches this pool of processes and balances load
> across them.
>
For starters, I would just use one process to open the UDP socket and
then use this process to send out all the UDP datagrams. This should
be fast enough (in most cases - I'm assuming you have a modest load of
a few hundred per second).
cheers
Chandru
More information about the erlang-questions
mailing list