On Tue, 8 Jul 2008, David Nicol wrote:
On Tue, Jul 8, 2008 at 3:14 PM,
<[EMAIL PROTECTED]> wrote:
Basically you just need an
understanding of how async programming works - from there everything
starts to become obvious.
never block for IO. Work out the state so that you can drop
everything and pick it up later whenever you would be waiting for IO
from any source. Keep all per-connection data in an object.
Yup, that and a basic understanding of how Danga::Socket works (easiest to
do something like read the current queue/async/smtp-forward plugin to
learn that).
But do note what I've said here previously: async is for high CONCURRENCY
not necessarily performance. Up to a certain level of concurrency prefork
is faster.
Matt.