Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Convert application to async

by Corion (Patriarch)
on Mar 10, 2013 at 16:41 UTC ( [id://1022671]=note: print w/replies, xml ) Need Help??


in reply to Convert application to async

One "easy" way would be to make the application asynchronous using Coro. Coro basically introduces what other languages call Green Threads to Perl. The drawback is that Coro does some dark magic to swap call stacks around, which may or may not play well with Apache, so you best put that functionality into a separate process. And even then it still employs that dark magic. See Twiggy and Starlet for Coro-based HTTP servers for example.

Replies are listed 'Best First'.
Re^2: Convert application to async
by arpx (Acolyte) on Mar 10, 2013 at 22:54 UTC
    nice, looks clean and pretty.. will dig into them tomorrow, might fit
    tx for your hint! :)

    cheers,

      Worth reading: Why Coro?.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1022671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-29 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found