I *could *do that (and would fall back to this if needed) but it's 
suboptimal to say the least. celery does this somehow (run inside djano 
context but from without the django process. listen to rabbitmq, etc) so I 
guess it can be done. Looking for an Idea how

On Tuesday, February 25, 2014 6:10:50 PM UTC+2, jondbaker wrote:
>
> Could you write a RESTful API in your Django project, and then issue POST 
> requests to that from a middleman script that the mq could communicate with?
>
> JDB
>
>
> On Tue, Feb 25, 2014 at 8:28 AM, Alon Nisser <alon...@gmail.com<javascript:>
> > wrote:
>
>> I need to implement a quite simple Django server that server some http 
>> requests *and *listens to a rabbitmq message queue that streams 
>> information into the Django app (that should be written to the db). the 
>> data *must* be written to the db in a synchronized order , So I can't 
>> use the obvious celery/rabbit configuration.  I was told that there is no 
>> way to do this in the same Django project. since Django would listen to 
>> http requests on It's process. and It can't handle another process to 
>> listen for Rabbit - forcing me to to add Another python/django project for 
>> the rabbit/db writes part - working with the same models The http bound 
>> django project works with.. You can smell the trouble with this config from 
>> here. .. Any Ideas how to solve this?
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/794bf8ca-a15b-40da-97c2-b3a416a35fe0%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/76ffde98-558f-4f06-baf9-d81fd12143a7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to