thingsboard / tbmq

Open-source, scalable, and fault-tolerant MQTT broker able to handle 4M+ concurrent client connections, supporting at least 3M messages per second throughput per single cluster node with low latency delivery. The cluster mode supports more than 100M concurrently connected clients.
https://thingsboard.io/products/mqtt-broker/
Apache License 2.0
572 stars 46 forks source link

[Feature Request] Limit number of sessions #85

Closed dmytro-landiak closed 9 months ago

dmytro-landiak commented 9 months ago

Is your feature request related to a problem? Please describe.

It would be great to have the possibility to limit the number of sessions that can be stored/connected on the broker at once. For example to have a parameter - 1000 sessions. This would mean 1k sessions can be connected to the broker at once. Maybe some of them can be persistent and disconnected thus the info still will be stored on the broker for later reconnecting.