Async Django Rest Framework by integrating ADRF's architecture #9841
Unanswered
Gizmoytb09
asked this question in
Ideas & Suggestions
Replies: 1 comment
-
|
yeah, we might re consider it in future, lets wait and see when the time comes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🚀 Proposal: Integrate First-Class Async Support into DRF
📋 Executive Summary
A structured, pragmatic roadmap for bringing first-class async support into Django REST Framework by integrating ADRF's architecture into DRF's core as an official
asynchronous/namespace.🎯 Background: The Current Situation
Django 6.0 Achievements
Django 6.0 introduced complete almost async capabilities:
Django now supports end-to-end almost async capabilities — except for the REST API layer.
DRF's Current State
DRF remains primarily:
This creates a bottleneck for modern Django applications attempting to build fully async APIs, for Python 3.14+ and Django 6.0+.
The ADRF Situation
Developers currently rely on ADRF (Async Django REST Framework):
💡 The Vision
Core Concept
Bring first-class async support into DRF by integrating ADRF's async architecture as an official namespace inside
rest_framework.Proposed Structure
This mirrors DRF's file layout while maintaining complete separation through dedicated namespacing.
Migration Example
Integration Benefits
🤔 Why Integrate Into DRF Instead of Keeping ADRF External?
Current Pain Points
Integration Advantages
🗺️ Proposed Approach
Phase 1: Foundation — New
asynchronous/NamespaceTimeline: Initial Release
Breaking Changes: None
Migration Required: Opt-in only
Components
AsyncAPIView— Base async view classKey Principles
Phase 2: Unification — Progressive Integration
Timeline: Following initial adoption
Focus: Community collaboration
Once async versions exist in DRF core:
Phase 3: Expansion — Long-term Roadmap
Timeline: Iterative improvements
Scope: Advanced async features
🙏 Acknowledgments
Thank you to:
Let's bring async to DRF — together. 🚀
Beta Was this translation helpful? Give feedback.
All reactions