Coffee-Resque Demo

Coffee-Resque Demo

@liangzan

Brief history

Github

Do you have these?

  • Persistence
  • See what's pending
  • Modify pending jobs in-place
  • Tags
  • Priorities
  • Fast pushing and popping
  • See what workers are doing
  • See what workers have done
  • See failed jobs
  • Kill fat workers
  • Kill stale workers
  • Kill workers that are running too long
  • Keep Rails loaded / persistent workers
  • Distributed workers (run them on multiple machines)
  • Workers can watch multiple (or all) tags
  • Don't retry failed jobs
  • Don't "release" failed jobs

Ruby Resque

A redis backed ruby library for creating background jobs

Redis

How it works

  • enqueue jobs on queues on redis
  • workers poll the queue and perform the job workers

Coffee-resque?

Coffeescript implementation

Rick Olson(@technoweenie)

coffeescript nodejs

What are the differences??

  • No web frontend
  • No plugins(yet)

Demo time - Enhancing the value of HDB flat

PAP - job is to enhance the value

Opposition - job is to keep the value affordable

Flat prices

Why use coffee-resque?

  • node.js compatible
  • fast?

When using the library

  • Be careful of uncaught exceptions
  • You MUST callback
  • If the job is complex, put it in an object

Thoughts on Node.js

  • Great for event driven apps
  • Real easy to prototype network apps
  • You are stuck with the aysnc model
  • Code can get unwieldy if you're not careful
  • Libs are good, increasing, but... not as mature yet

That's it!

It's at Coffee-Resque Demo.

Wong Liang Zan / @liangzan / zan@liangzan.net