News for hackers. Stuff that matters.
Re:Django 1.9 alpha 1 released by dguaraglia on Thursday September 24, 2015 @01:26AM (#10269985)
Have you tried using Tornado/Twisted for the websockets? I'm curious about performance.

I'm building a side project right now and I'm using Django running inside Tornado (it's pretty simple to setup, really) so I can both have my cake and eat it (easy APIs, and a layer I can use to maintain websockets.) I wonder if the performance would be comparable to Node?

Re:Django 1.9 alpha 1 released by jerelunruh on Thursday September 24, 2015 @09:32AM (#10271452)
I tried every variation I could get to work including tornado, asyncio, and pypy. In my simple "how many websockets can I open" tests python would start erroring by 10,000 (no Django, just an empty websocket) while node hit 40,000 and was still climbing. Eventually I concluded it was a case of "with sufficient thrust pigs fly just fine". I still like python; just doesn't seem to be worth the effort to try to adapt blocking libraries into a non-blocking use case.
Re:Django 1.9 alpha 1 released by dguaraglia on Thursday September 24, 2015 @06:14PM (#10275136)
That makes sense. I'm actually very pragmatic when it comes to this kind of stack and I'll be happy to replace my current Tornado frontend with a Node frontend when I hit the limit (for now it's a very niche usecase, just me and a few friends, so it might be that I never need to improve it.)
Re:Django 1.9 alpha 1 released by itbeho on Thursday September 24, 2015 @03:19AM (#10270313)
This is promising: http://swampdragon.net
Re:Django 1.9 alpha 1 released by dguaraglia on Thursday September 24, 2015 @06:14PM (#10275140)
Oh! Interesting, thanks for the link!