This is Michael Alan Dorman's Typepad Profile.
Join Typepad and start following Michael Alan Dorman's activity
Join Now!
Already a member? Sign In
Michael Alan Dorman
Recent Activity
Sorry, I don't have time to write significant text, etc., right now, but you mentioned having a hard time coming up with "real-world" reasons for doing this, and I thought of two real-world scenarios where doing the AnyEvent dance with Plack might make sense. First, if you're mostly just doing code that is a thin shim (marshalling+auth) over a bunch of database calls, and you are using a database layer that has good AnyEvent support---Redis being the only one that comes to mind, though it is possible to do it with PostgreSQL without too much hassle---then you could perhaps get by with a single-process server, which would lower the resource requirements, etc., for serving your application. If you're running on memory-constrained VM images, that could be a nontrivial cost-savings. A generalization of that would be if you were pushing all processing off on some set of back-end machines, via ZeroMQ or RabbitMQ or Gearman or something---again, you have the light-weight front-end that controls access and frobs data, and then it hands off to other boxes for actual processing. Both of those notions are somewhat artificial, but not toy usages just to prove a point.
Michael Alan Dorman is now following The Typepad Team
Feb 10, 2013