morgon has asked for the wisdom of the Perl Monks concerning the following question:
I am currently playing around with Dancer2 and wonder about the proper way to start a long-running child-process.
But even though I currently use Dancer2 I guess my question is more about PSGI in general.
I don't know that much about it but my understanding is that PSGI/Plack abstracts away the deployment details, so in theory your PSGI application should not be affected regardless of whether the app is later deployed as GCI or running under starman or whatever, but I cannot see how you can abstract away all the mechanics of forking (e.g. what part of the system reaps the childs again etc).
So what is the best practice here?
Not forking at all and using some job-qeueue mechanism or dealing with it on a case-by-case basis as there is no abstraction for it?
Please enlighten me...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to fork in PSGI/Dancer2 (daemonize)
by tye (Sage) on Jan 30, 2015 at 15:19 UTC | |
by locked_user sundialsvc4 (Abbot) on Jan 30, 2015 at 22:10 UTC | |
by Anonymous Monk on Jan 30, 2015 at 22:12 UTC | |
|
Re: How to fork in PSGI/Dancer2
by locked_user sundialsvc4 (Abbot) on Jan 30, 2015 at 14:53 UTC |