Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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.

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]
[choroba]: 20 months? :-o
[Discipulus]: up to 20 months.. but you'll be sure to remain unemployed

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2018-05-23 21:01 GMT
Find Nodes?
    Voting Booth?