×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Dancing with websocket

by on Aug 18, 2012

  • 2,350 views

Given at YAPC::EU 2012 ...

Given at YAPC::EU 2012

Dancer + WebSocket + AnyEvent + Twiggy

This in *not* a talk about doing a hello world in Dancer, as there are plenty of it. This is a real-life example of using Dancer to address a problem in an elegant and powerful way

At $job, we have cpan mirrors. We want them to stay a bit behind the real CPAN for stability, but we have a tool to update modules from the real CPAN to our mirrors. Cool.

I wanted to have a web interface to trigger it, and monitor the injection. This problem is not a typical one (blog, wiki, CRUD, etc). Here we have a long running operation that shall happen only one at a time, that generates logs to be displayed, with states that need keeping. In this regard, it's interesting to see how Dancer is versatile enough to address these situations with ease.

This talk details how I did that, the technology I used, and the full source code (which is quite short). I used Dancer + WebSocket + AnyEvent + Twiggy + some other stuff.

This talk doesn't require any particular knowledge beyond basic Perl, and very basic web server understanding.

Statistics

Views

Total Views
2,350
Views on SlideShare
2,325
Embed Views
25

Actions

Likes
5
Downloads
18
Comments
0

3 Embeds 25

http://www.techgig.com 19
http://115.112.206.131 5
https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
Post Comment
Edit your comment

Dancing with websocket Dancing with websocket Presentation Transcript