[Django] #37156: Properly implement async Redis methods

0 views
Skip to first unread message

Django

unread,
9:31 AM (3 hours ago) 9:31 AM
to django-...@googlegroups.com
#37156: Properly implement async Redis methods
-------------------------------------+-------------------------------------
Reporter: Johannes Maron | Type:
| Cleanup/optimization
Status: new | Component: Core
| (Cache system)
Version: 6.0 | Severity: Normal
Keywords: redis, asyncio, | Triage Stage:
async | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
The backend API already implements `aget`, `aset`, … methods.
However, the native `RedisCache` backend, doesn't reimplement those
methods to use the asyncio API of the Redis SDK, but rather the asgiref
fallback.

As discussed before, the extra threading comes with a significant overhead
and disrupts things like full-page caching of otherwise async views.

This proposal does not alter Django's public API, but rather optimizes
internal implementation, which is why I put this on Trac.
--
Ticket URL: <https://code.djangoproject.com/ticket/37156>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages