I am a Django developer, i have recently build a messaging app using Channels 2 and Redis. For each conversation i am creating a group and adding all the participant to the group every time when one reconnect.
I am also using workers for channels with Daphne on production
The problem is that after 10 groups for a user , the messaging get super slow with daphne using nearly 100 % CPU usage, causing all site slow.
I have attached the screehshots for the CPU usage.
I would be really thankful to you could advice to reduce CPU usage
Regards, Saadullah Naeem