Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Is Django async yet?

Is Django async yet?

Django started adding support for writing asynchronous views in version 3.1. We are now at 5.0: what’s the status of this journey? It still may be too early to start rewriting all our production backend code using asynchronous views :) Though it may be a good moment to take a look at it.
We’ll try to rewrite a simple synchronous API as an asynchronous API and see what works, how well it’s working and what’s missing.

Riccardo Magliocchetti

May 23, 2024
Tweet

More Decks by Riccardo Magliocchetti

Other Decks in Programming

Transcript

  1. Experience of Async DRF - No ModelViewSet available - Missing

    HTML rendering - Missing async related fields in serializers
  2. Experience of Async DRF - No ModelViewSet available - Missing

    HTML rendering - Missing async related fields in serializers - Missing default permissions classes
  3. Experience of Async DRF Attempt to fix a couple of

    issues, still red tests: em1208/adrf/pull/36
  4. Experience of Async DRF Try to fix a couple of

    issues, still red tests: em1208/adrf/pull/36 Good opportunity to write parts of a web framework
  5. References - Django asynchronous support - DRF async discussion -

    Async DRF - Demo project - Opentelemetry - opentelemetry-instrumentation-asgiref