I'm currently building a backend API for a chat app with Django and DRF. It basically handles direct interaction with a MySQL database and also manages other important components like authentication, authorization, and user management. Our team has built an API microservice for enabling chat on our client mobile app. We're doing this through websockets and rabbitMQ on node.js.
So we've put this up online and are realizing that the Django backend doesn't seem to support the vast requests being sent from the chat API. Running a load test on the Django app shows that it's dropping up to 90% or requests. Adding more servers connected to a load balancer has not improved the situation either. I suppose this is being bottlenecked by the blocking nature of Django (actually DRF in particular). But it's just my hunch and I'm not really sure as to what the problem really is.
Does anyone have advice on how to improve performance for the Django API.