Don't ask to ask, just ask | |
PerlMonks |
Re: Current Thoughts on Server/Client Best Development Strategiesby three18ti (Monk) |
on Feb 01, 2014 at 09:00 UTC ( [id://1072950]=note: print w/replies, xml ) | Need Help?? |
Your link doesn't go anywhere. Perhaps if you could expound on what you are looking to accomplish you might get some better answersIn 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.
In Section
Seekers of Perl Wisdom
|
|