Hacker News new | ask | show | jobs
by bachstelze 3369 days ago
Are there plans for django 2.0 to support asynchronous processing like in http://aiohttp.readthedocs.io/en/stable/ ? Everybody suggests celery as an asynchrone task queue, but i dont see how to resolve a http request with it. Will this come with python 3 because the async/await syntax introduced by PEP 492 is only valid for Python 3.5+ ?
1 comments

And why would you want it? What is your use case? Making something async introduces a lot of complexity with no obvious benefit. It's also not as simple as it looks. For instance all db access in django is synchronous at the moment and changing that is not trivial since it requires swapping out whole layer.

I don't read the mailing lists but i'm not sure if it's even considered.

If you want async requests today you can take a look at channels: http://channels.readthedocs.io/en/latest/

I want to return values from external REST APIs to the client. Is it really that hard with the new async/await syntax?