Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Current Thoughts on Server/Client Best Development Strategies

by three18ti (Scribe)
on Feb 01, 2014 at 09:00 UTC ( #1072950=note: print w/replies, xml ) Need Help??

in reply to Current Thoughts on Server/Client Best Development Strategies

Your link doesn't go anywhere.

Perhaps if you could expound on what you are looking to accomplish you might get some better answers

In general, POE is one of the most supported event loops which makes it a good candidate for Event Driven design patterns.

Do client/server applications lend themselves to event driven patters? Well, I would say that largely depends on your requirements (and of course, what you are trying to accomplish.

I will say, from personal experience, I was able to reimplement an IRC bot I had written (in one giant while(1){} loop ) in POE in several hundred lines vs several thousand lines. The down side is that the initial startup of the bot written in POE takes a bit longer to startup and start responding to input, once the bot has joined the channel, it accepts input but doens't start responding for a few moments, once it's started up and all the internal Memoization/Caching/Whatever happens under the hood/etc. I don't notice any performance issues.

On the other hand, if you're looking to implement a webserver I would point you to plackperl (which takes it cues from Python wsgi and Ruby Rack, though it is my opinion that psgi does middleware better than Ruby and Python), there is a list of servers and frameworks for web development (including a couple built on AnyEvent, AnyEvent does support POE event loops) that I really don't think it's worth rolling your own.

  • Comment on Re: Current Thoughts on Server/Client Best Development Strategies

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1072950]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-03-17 16:38 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.