in reply to perl scripts as daemons

I think best you can do is buy 'network programming' by Lincoln Stein. Read it cover to cover and then start writing your daemon.

It covers everything from basic network programming to multiplexing, threading and forking for high loads.

It also covers 'daemonizing', logging and other stuff you probably want to do.

In short: A perl program can perform well under high loads, it can even perform better than stuff written in other languages.
I'm longing to hear Marc Lehmans talk at German Perl Workshop, why he wrote his own web server for very high loads that couldn't be served by apache and thttp.

Replies are listed 'Best First'.
Re: Re: perl scripts as daemons
by blakem (Monsignor) on Dec 07, 2001 at 04:53 UTC
    I picked up a copy at lunch since my next project involves a networked perl daemon. I'm only a couple hours into the book, but am quite impressed so far.

    On a side note, merlyn benchmarked a trivial http-redirector written in perl at nearly 10x the throughput of apache. See his comments in this thread for details.

    -Blake

Re: Re: perl scripts as daemons
by Rex(Wrecks) (Curate) on Dec 07, 2001 at 02:51 UTC
    Absolutely true. This book walks through this exact topic in detail and refines it to the point where you just use the modules you have written for daemons. Not only that but you will understand the modules quite well.

    "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!