filmov
tv
Sam Bolgert, 'REST Websockets API with Django Channels', PyBay2016

Показать описание
Building REST APIs over HTTP has been discussed time and again. But could we do the same with WebSockets? What is the performance benefit? What learnings can we carry over from HTTP to WS? This talk will describe how engineers can build a REST API over WebSockets using Django and Channels. It is largely based on my experiences trying to build a REST WebSocket API.
Abstract
Websockets have been around for a number of years but popular web frameworks have been slow to integrate because of their asynchronous nature. With Django Channels we’ve finally broken that frontier in a synchronous way. How will developers use this new territory? I will outline some of my explorations that I have serialized into a library I call channels-api. It takes familiar patterns from Django Rest Framework and applies them to websocket land. I will walk through a sample project to demonstrate the configuration and installation of the library. I will demonstrate using these patterns we can create a “REST like” API relatively quickly. We can also implement new features that HTTP doesn’t support like server side push.
Bio
Author of channels-api library. Former Lead engineer at a number of startups.
Abstract
Websockets have been around for a number of years but popular web frameworks have been slow to integrate because of their asynchronous nature. With Django Channels we’ve finally broken that frontier in a synchronous way. How will developers use this new territory? I will outline some of my explorations that I have serialized into a library I call channels-api. It takes familiar patterns from Django Rest Framework and applies them to websocket land. I will walk through a sample project to demonstrate the configuration and installation of the library. I will demonstrate using these patterns we can create a “REST like” API relatively quickly. We can also implement new features that HTTP doesn’t support like server side push.
Bio
Author of channels-api library. Former Lead engineer at a number of startups.
Sam Bolgert, 'REST Websockets API with Django Channels', PyBay2016
WebSockets in Django with Channels by Tomasz Kwiatkowski
Building RESTful APIs with Flask: When Should You Use Websockets?
The end of polling : why and how to transform a REST API into a Data Streaming API? by Audrey Neveu
Django Channels & WebSockets Oversimplified
WebSockets vs HTTP (REST)
How to make Web Socket Endpoints using Django Channels?
Why and how to transform a REST API into a Data Streaming API Audrey Neveu
Developing real time applications in Django with Websockets - PythonSG Meetup
The end of polling : why and how to transform a REST API into a Data Streaming API? by Audrey Neveu
Implement real-time updates with Django REST Framework| Cryptocurrency API
Django Channels and Websockets in Production! | Rudy Mutter @ PyBay2018
Battleship with Django and WebSockets
Django Channels Rest Framework + WebSockets | Django School
Django Channels Tutorial - 5 // Chat models and API
Django - Web Socket Endpoint demo video (Django/Channels/Redis/Django Rest Framework)
Hacking Django Channels for Fun (and Profit) [PyOhio 2021]
Realtime gyroscope and thermometer using Python, Django, Flotcharts and Socket.io
Web socket com Django Channels
DJANGO CHANNELS 2 Tutorial (V2) - Real Time - WebSockets - Async
How to Use Django Signals to Trigger Code (Django Tutorial) | Part 12
Live Data in Django using Django Channels
Python Django Tutorial Part 11 | Group Chat Box | Channels and Websocket
hendrix demo: Django, async, websockets, and telnet w/ Twisted & hendrix. Django-NYC @ Buzzfeed
Комментарии