[erlang-questions] how to break the problem. the erlang way?
Dave Pawson
dave.pawson@REDACTED
Sat Aug 1 06:26:28 CEST 2009
2009/7/31 Mihai Balea <mihai@REDACTED>:
> Depending on how heavy is your message unpacking and deserializing, you
> might want to do something like:
>
> Receiver -> spawn a process for each packet that unpacks/deserializes it ->
> Orderer/Writer
>
> That, of course, assumes packets can be processed independently.
>
> One advantage of having transient processes is that you can tune them to
> never need garbage collection, which is not the case for long lived
> processes.
Just to confirm, by 'transient process', do you mean the process
is spawned, processes one packet, and then dies?
TIA
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
More information about the erlang-questions
mailing list