Background Programs in Django

28 views
Skip to first unread message

surya

unread,
Sep 26, 2012, 8:07:23 AM9/26/12
to django...@googlegroups.com
I have to use RSS/ Atom feeds of blogs in my Django app. So, I thought to use Google Feed API. All the API provides is a BIG list of feeds..

If I need a post (say no 25), I need to GET the whole feeds and search every time which is redundant. So, I am thinking to run a background program which periodically performs GET and updates the feeds as a JSON file. Now, I can at least do some work efficiently!

If anyone got a better idea, please do tell me.

Can anyone tell me how to do that? It should be in sync with requests I perform on the JSON file in Django..

John DeRosa

unread,
Sep 26, 2012, 10:38:07 AM9/26/12
to django...@googlegroups.com
There are a number of technologies out there for background asynchronous tasks in Python. They differ on attributes such as how the tasks are managed and administered; the run queues' sophistication (how many, how they're divvied up, whether they can be pinned to servers, etc.), whether the tasks can be distributed to multiple servers; etc.

The best-known is probably Celery (http://celeryproject.org). Many features. There are other tools, which are simpler and may be better suited for your task. Here's a shameless plug, I'm considering switching from Celery, so I made a list of the alternatives I was considering. My experiences and criteria are not yours, but, this blog post might be a good place from which to start your research: http://seeknuance.com/2012/08/14/alternatives-to-using-celery/.

John

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/KOAA_d2eaFgJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages