YAPC::NA 2014 • Orlando, FL

Perl Out Of Order: Why Timeout Today What You Can Return Tomorrow

By Augustina Ragwitz (‎auggy‎) from NY.pm
Date: Tuesday, 24 June 2014 10:00
Duration: 50 minutes
Target audience: Intermediate
Language: English

So you've built a fancy web application with a fancy database back end, but now that people are using it you've got a few features timing out... and making for angry end users. In a normal procedural program, each task is done when the other finishes. Another option is to hand off the hard work to something else and give your user a status rather than a timeout! This talk will introduce asynchronous programming and the worker queue pattern. I will also provide a simple, reusable example for passing a long running SQL query off to a worker queue using RabbitMQ and AnyEvent::RabbitMQ.

Attended by: