I'm doing load testing with my Django app providing GraphQL Subscriptions using Django channels and a redis Channels layer (django
, graphene-django
, channels
, graphene-subscriptions
, channels-redis
). As ASGI server I'm using daphne
right now. I use nginx
as proxy. The periodicity with which the backend publishes messages via GraphQL Subscriptions depends on the periodicity of messages the backend receives via MQTT. I'm increasing the periodicity with which an external data provider publishes messages to the MQTT broker, means the periodicity with which the backend has to process these messages and publish messages via GraphQL Subscriptions. I'm facing the following error:
2020-03-11 08:33:58,464 ERROR 2 of 12 channels over capacity in group subscriptions
It seems like this issue is caused by channels_redis. Can I scale the infrastructure to workaround this issue?