-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluate feasibility of Django ASGI and ADRF conversion #2566
Comments
I've tried this before in the past, when
await sync_to_async(search_controller.search)(*args, **kwargs) Would potentially help scope the changes just to the entry point rather than the entire downstream code of the views. Keep in mind that there are only 2 places we need to switch to asynchronous calls to solve the issue of workers blocked on thumbnail requests: the |
This PR demonstrates the feasibility of the ASGI Django approach. @AetherUnbound Can you clarify what the next steps are for this? Is a single new issue to actually implement the changes sufficient or should we try to break the work up into different chunks? Up front, these are the overall steps I would suggest we take to convert the app to ASGI, including up-front work that makes downstream issues easier and smaller:
The first four can be completed concurrently. The last two must be completed in order and should ideally only be started after the first four are complete. Do you think these issues are enough for us to move forward or should we write a more fleshed out implementation plan describing the changes for each one? If we want to start on this soon then someone else will need to convert the tasks to issues unless we can wait until after my holiday. |
This outline looks excellent, thanks for solidifying it into concrete steps! I think the best plan would be to make separate issues for it, for each of the individual pieces you describe as part of the conversion. Having separate issues will help make scoping out the work amongst our other TODOs a little easier. I think given the maintainers' upcoming support engagement and our existing TODOs, the issue creation can wait until after you're back! |
Issues are created! https://github.com/WordPress/openverse/milestone/19 Closing this issue as completed. |
Problem
Openverse needs to make a determination about how to best handle thumbnail traffic, as discussed here:
#2498
Converting the entire API to work asynchronously is a compelling choice, as asynchronicity benefits all parts of the API. However, we are uncertain about the compatibility of switching to ASGI and ADRF with the existing codebase.
Description
A contributor should run a timeboxed (perhaps 4 development hours for initial experimentation, with an additional 4 if necessary to close the issue) in an attempt to determine if this conversion is possible.
Alternatives
Additional context
The text was updated successfully, but these errors were encountered: