Use resque and resque-scheduler to execute background jobs. Schedule event polling.