Tuesday, March 14, 2017

Re: Django channels being used instead of celery.

On Tuesday 14 March 2017 13:14:37 Prafull Gaikwad wrote:

 

> Current situation -

> Currently, I am using celery where I have the Django server

> communicating with different celery workers hosted on different

> Raspberry Pis. The web application served by Django takes request

> from the user and updates the database collecting information from

> the raspberry pi. Using Celery becomes a bit complicated here as I

> have to have task queues in Celery broker corresponding to each

> raspberry pi which might be a problem while scaling it up.

 

I don't really understand why you've turned a simple push protocol into a complicated message exchange. The pis are more then capable of keeping state of last sent data, so why not just throw it over the wire and be done with it. Let the server figure out what to do with the package.

--

Melvyn Sopacua

No comments:

Post a Comment