/
How are sessions counted in the paid plan?

How are sessions counted in the paid plan?

How Sessions are Counted:

In the HiveMQ Cloud, sessions align with concurrent MQTT client sessions. Each active MQTT connection equals one session. Each persistent session, active or inactive, also counts as a session. If a device establishes multiple sessions simultaneously (using a different Client ID for each session), each is considered a separate connection. Counts reset to zero monthly.

Example:

  1. Multiple short-time connections within an hour:

    • 37 devices connecting every hour for a few minutes count as 37 connections.

  2. Combination of persistent and non-persistent sessions:

    • 10 devices with persistent sessions (cleanSession flag set to false) + 27 devices connecting hourly = 37 total connections.

Displaying Session Count:

The "MQTT Client Sessions" count at console.hivemq.cloud reflects the max session count reached in the current month, resetting monthly. It doesn't show active connections but the max count reached.

image-20240117-121640.png

For detailed cost breakdowns and session qualifications, check our pricing page and technical FAQ on the page.

Related content

What counts as a single connection (session)?
What counts as a single connection (session)?
More like this
How can I estimate costs for the HiveMQ Cloud Starter subscription?
How can I estimate costs for the HiveMQ Cloud Starter subscription?
More like this
How can I calculate my estimated costs?
How can I calculate my estimated costs?
More like this
How many messages can the Cloud Starter broker queue for an offline client?
How many messages can the Cloud Starter broker queue for an offline client?
More like this
Data retention for a persistent session seems to be limited to 1,000 records
Data retention for a persistent session seems to be limited to 1,000 records
More like this