Hi there, I’m using the free public broker.hivemq.com for my students to do a small chat app in teaching mobile apps with kotlin jetpack compose. Since a few days we encounter: com.hivemq.client.mqtt.mqtt5.exceptions.Mqtt5ConnAckException: CONNECT failed as CONNACK contained an Error Code: CONNECTION_RATE_EXCEEDED - this has never been the case in prior semesters. Does anyone might know why this occurs now? Appreciate your advise. #education #broker
Hello @MichaelJob
Thank you for reaching out, and welcome to the community forum!
It seems your clients might be exceeding the connection rate limit set on the HiveMQ Public MQTT Broker. This limit is enforced to ensure fair usage across all users.
To address this, we recommend the following steps:
- Reduce Connection Frequency:
Ensure your clients reconnect only when necessary. Implementing an exponential backoff for reconnection attempts can help avoid overwhelming the broker. - Deploy HiveMQ Community Edition:
For greater control and customization, you can deploy the HiveMQ Community Edition on your own infrastructure. This free version provides full control over limits and configurations, making it ideal for testing purposes.
Please let us know if you have any questions or require further assistance—we’re here to help!
Kind regards,
Sheetal from HiveMQ team
1 Like