Greetings, My only qualm with Mojolicious is the short deprecation cycle and how often you have to update your code to work with the latest and greatest (or lock on an older version). However, I do *love* their testing framework so that's a major plus.
Nowadays I use Dancer for just about everything and I've been quite happy with it. For pure API applications I tend to daemonize with lighttpd, for website type things I generally use Apache. I admit there is a certain performance hit for not using a reverse proxy to starman (or related) but the ease of management has outweighed any of those concerns for me. My WebSocket library uses AnyEvent and all of the related modules (AnyEvent::Handle etc) and I demonize that directly without something like Apache/Plack/Starman/etc. I think the real answer is that "It depends on what you are doing." If you are building a full website and you need a templating engine something like Dancer/Mojo tend to be the best choices. I'm always happy to discuss these sorts of things though and I could share the testing library I created for Dancer that makes it easy to test apps similar to how Test::Mojo works. It lets you use the Test::WWW::Mechanize library against Dancer apps and has always worked nicely for me. Best Regards, Robert Stone On Fri, Jun 2, 2017 at 8:02 AM, Julian Brown <[email protected]> wrote: > Thanx for the reply Mark. > > Just because it is old, does not make it correct. > > In mod_perl2, I write a series of verbs that take values and do things all > compiled into Apache, what is faster? > > I will stipulate the easy aspects of Mojo. > > Julian > > On Thu, Jun 1, 2017 at 10:55 PM, Mark Allen <[email protected]> wrote: > >> Because it's not 2004 anymore? >> >> Seriously, it couldn't be easier to write a nice web layer using >> Mojolicious::Lite (yeah I was a Dancer guy back in the day but I'm all Mojo >> these days not that I'm writing a bunch of Perl for $dayjob.) >> >> All you need to do is `cpanm Mojolicious` and start implementing route >> handlers. It even will handle turning your hashes into JSON automagically. >> >> I will be out of the country for the June meeting, but it would be fun to >> do a presentation about Mojo for July if people are interested in that. >> >> Cheers, >> >> Mark >> >> >> On Thursday, June 1, 2017 11:02 AM, Julian Brown <[email protected]> >> wrote: >> >> >> Per my previous mail, I will prepare for J.D.'s challenge. >> >> But I would like to have a discussion on the reasons one would pick >> dancer or some plack layer over mod_perl2. >> >> We could later even do some benchmarking, but we have to get a suite of >> tasks to benchmark. >> >> Julian >> _______________________________________________ >> Houston mailing list >> [email protected] >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ >> >> >> _______________________________________________ >> Houston mailing list >> [email protected] >> http://mail.pm.org/mailman/listinfo/houston >> Website: http://houston.pm.org/ >> > > > _______________________________________________ > Houston mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/houston > Website: http://houston.pm.org/ >
_______________________________________________ Houston mailing list [email protected] http://mail.pm.org/mailman/listinfo/houston Website: http://houston.pm.org/
