4 ms·
Thanks for a mention of the library/blog post :) I also did a talk at this year's DjangoCon Europe about building realtime apps in Django which covers integrat
by aaronbasssett 11y ago
Thanks for a mention of the library/blog post :)
I also did a talk at this year's DjangoCon Europe about building realtime apps in Django which covers integrating Swampdragon[1] and Pusher in Django.
Video of the talk isn't up yet but the slides are on Speakerdeck[2] and my example code is on Github[3].
[1]: http://swampdragon.net/ http://swampdragon.net/
[2]: https://speakerdeck.com/aaronbassett/effortless-real-time-apps-in-django https://speakerdeck.com/aaronbassett/effortless-real-time-ap...
[3]: https://github.com/search?q=user%3Aaaronbassett+djangocon https://github.com/search?q=user%3Aaaronbassett+djangocon
- ceyhunkazel 11y agoCould you compare swampdragon vs Pusher? Ease of use, cost, overall experience etc.. Any guide which to choose?
- aaronbasssett 11y agoIt is not a mutually exclusive decision. I used Swampdragon's serialisers with Pusher (and hopefully in future releases Swampdragon will share its serialisers with DRF as well). In terms of ease of use, Pusher is easiest to setup as it is a PaaS service so you don't need to install anything. Swampdragon has a slight advantage that you can run it locally without any outside dependencies, which is nice for development. Scaling and cost, well it depends on your current architecture. Swampdragon you'll need to scale out/maintain your own Redis and Tornado servers whereas with Pusher it's a fixed cost and you don't have to worry about scaling/bursting etc. A pattern I've seen personally is people start with self-hosting until they reach more concurrent connections than a single server can comfortably handle and then switching to a PaaS service like Pusher.