I have a ruby on rails app in which I\'m trying to find a way to run some code every few seconds.
I\'ve found lots of info and ideas using cron, or cron-like implementat
Use thin or other server which uses eventmachine, then just use timers that are part of eventmachine. Example: in config/application.rb
EM.add_periodic_timer(2) do do_this_every_2_sec end