Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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
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! :)


      Worth reading: Why Coro?.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2016-02-12 14:19 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (401 votes), past polls