Ruby Outsourcing + Fork Screencast

Outsourcing + Fork from Joon You on Vimeo.

In this episode, I demonstrate outsourcing a function to the command line within Ruby and create asynchronous process using fork. The example takes a video file and converts it to Flash file using ffmpeg. Forking can be used with Rails, but please use Spawn plugin or do the sensible thing by using other queuing mechanism.

The code for the example used in this screencast:

Leave a Reply