# Fetching RSS feeds asynchronously in background

**URL:** <https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015>\
**Category:** Rails\
**Created:** [January 30, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015 "2009-01-30T13:10:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lennart\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6de8d8/32.png) [@Lennart\_K](https://www.ruby-forum.com/u/Lennart_K)\
**Post date:** [January 30, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015/1 "2009-01-30T13:10:10Z")

</div>

Hello everyone,

I want to fetch some (5-10) RSS feeds from another server. I plan to  
fetch the RSS feeds asynchronously and store them on the hard disk  
every 30 minutes so I can read them from there on every request. (To  
treat the remote server with care and to avoid longer page generation  
time).

What is the best way to do that?

I think about starting a fetcher-thread on the start of my Rails  
application. I want to avoid cron jobs to keep everything in the Rails  
application.

Thank you!

So long  
Lennart K.

---

<div class="post-metadata">

**Author:** ![Lennart\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6de8d8/32.png) [@Lennart\_K](https://www.ruby-forum.com/u/Lennart_K)\
**Post date:** [January 31, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015/2 "2009-01-31T15:12:09Z")

</div>

Hi Lennart,

You may have interests on this:

> <https://github.com/janx/newsmailer/blob/a4329bab234d8cc0252d9d7a72e97036b8a278df/app/models/crawler.rb>

Best,  
Jan

- Lennart K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [2009-01-30  
13:09:19 +0100]:
