I have been using Sidekiq successfully to run background jobs that are initiated by user actions in a Rails 3.2 application. My particular application involves sending and recei
Ruby multithreading is just for that. Spawn a thread in your initializers folder:
Thread.new do loop do for user in User.active data = user.get_data next if data.blank? UserDataWorker.perform_async(user.id) end sleep 1 end end
If your checks don't need much resources, should be allright.