[Dancer-users] Web-front end for long-running processes

Роман Галеев ip at ncom-ufa.ru
Thu Sep 20 18:41:30 CEST 2012


On 20.09.2012 22:27, Assaf Gordon wrote:
> damien krotkine wrote, On 09/20/2012 11:58 AM:
>> WebSockets !
>>
>>
>> http://www.slideshare.net/dkrotkine/dancing-with-websocket
>>
>
> Sounds interesting, I'll have to brush-up on HTML5-ism.
> But this only takes care of the server-client side communication, not the unix process handling (I neglected to mention that users might close their browser window and come back to it later, expecting to see their jobs still running).
>
> Sadly,
> It seems Apache doesn't support WebSockets proxied to perl (at least I couldn't find any reference to that),
> and "sudo cpan Dancer::Plugin::WebSocket" fails with too many errors (on Perl 5.14.2) - so I'm not going to pursue it ATM.
>

Try Server Side Events, it's way easier. You'll need an event-driven 
back-end though, like Twiggy. To mix it up place nginx in front of
apache and twiggy to have requests to uri like /event to be proxied to 
twiggy, and others to apache.


More information about the Dancer-users mailing list