0

I am using twitterstream to fetch tweets from twitter and store them to the database. I have been successful in fetching the tweets but not able to run it in the background. Can any one tell me how to do that.

Alex Bitek
  • 6,529
  • 5
  • 47
  • 77
Pravin
  • 6,592
  • 4
  • 42
  • 51

2 Answers2

0

Such kind of work can be handled in a background worker. Sidekiq is a current and great background worker library, and there's a RailsCast on it.

Thomas Klemm
  • 10,678
  • 1
  • 51
  • 54
0

OK, I would look at Custom Daemon with Rails 3 and see if it helps. You have two main options -- load your tweets every couple of minutes via cron, or run a background daemon. The daemon will probably make the most sense.

Community
  • 1
  • 1
muffinista
  • 6,676
  • 2
  • 30
  • 23