3 ms·
Nice. The Websockets events as HTTP request response is similar to the architecture of Django Channels.
by ivan_ah 9y ago
Nice. The Websockets events as HTTP request response is similar to the architecture of Django Channels.
- jkarneges 9y agoYup, splitting the session into a series of requests is a good way for Django Channels to rig things up, especially since Django itself doesn't support async yet. We even have a library that works similarly: https://github.com/fanout/django-grip https://github.com/fanout/django-grip (goals are different though. maybe someday we'll see ASGI Django apps using GRIP at the same time :))
- je42 9y agowe just went for aiohttp. django channels didn't scale on even very simple benchmarks. while aiohttp didn't even sweat. that said, making everything async in the python sync world was some effort. ;)