Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Convert application to async

by Corion (Pope)
on Mar 10, 2013 at 16:41 UTC ( #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.


Comment on Re: Convert application to async
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
Node Status?
node history
Node Type: note [id://1022671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2014-07-13 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls