Currently grappling with a challenge in Django Channels regarding multi-tenancy. While connections work smoothly on threads, transitioning to channels introduces event loops, leading to multiple processes operating on the same thread and causing potential race conditions when modifying tenants. Any insights, ideas, or assistance on resolving this would be greatly appreciated!
Do you use Daphne for ASGI requests? I know that Daphne is single-threaded, so you need to correctly configure the supervisor, which creates multiple Daphne processes.