Acknowledged once handed off
A QoS 1 or 2 publish is acknowledged once it is handed to online subscribers without a persistent session and the write-ahead log holds a copy for each subscriber with one.
We use cookies
We use cookies for site analytics, to remember the campaign or partner link you arrived from and, if you allow it, to load the site search from Google. Nothing optional is set until you choose. You can change your choice anytime in Your Privacy Choices at the bottom of every page. Cookie Policy
TBMQ Lite’s promises in short, with the details below:
A QoS 1 or 2 publish is acknowledged once it is handed to online subscribers without a persistent session and the write-ahead log holds a copy for each subscriber with one.
An out-of-memory exit or a docker kill loses no acknowledged message. When the broker starts again,
sessions pick up their queues.
The store syncs to disk every second by default. STORE_WAL_SYNC=always closes that window.
Devices connect and share subscriptions as usual. APPLICATION clients and integrations need TBMQ.
TBMQ Lite sends PUBACK (QoS 1) or PUBREC (QoS 2) once the message has been
PUBCOMP follows PUBREL at once.
If a persistent copy or a retained update cannot be written, because the disk is below the
watermark or the store
fails, the publish fails: an MQTT 5 publisher gets an error reason code (0x97, Quota exceeded, for the disk), an
MQTT 3.x publisher is disconnected.
A full message pipeline refuses publishes the same way, and drops a QoS 0 publish. It holds 100,000 publishes, or 10% of the heap, by default, and the broker stops reading from publishers at 80% of either; see Message pipeline.
docker kill): no acknowledged message is lost.STORE_WAL_SYNC_INTERVAL_MS (1 second by
default), counted from the end of the previous sync. Up to that interval, plus the time a sync takes, of acknowledged
messages can be lost; a failed sync is retried one interval later, so the window grows while syncs fail. With
STORE_WAL_SYNC=always the WAL is synced on every write, which closes the window and costs write throughput.TBMQ Lite has one client type, DEVICE. APPLICATION clients, and the shared subscriptions of APPLICATION clients,
exist only in clustered TBMQ, and so do the INTEGRATION clients of integrations. DEVICE clients use shared
subscriptions ($share/<group>/<topic>) as usual.
<TYPE> clients are not supported in TBMQ Lite, for example
APPLICATION clients are not supported in TBMQ Lite: creating or updating client credentials, each row of a CSV
import (the other rows are imported), and the default client type and client type claims of the JWT and HTTP
authentication providers.applicationClientsMappedToDevice_total or integrationClientsMappedToDevice_total.A persistent DEVICE client gets the QoS 1 and QoS 2 messages published while it is offline, from a queue kept in the store. The limits are the same as in TBMQ:
MQTT_PERSISTENT_SESSION_DEVICE_PERSISTED_MESSAGES_LIMIT, up to
65,535). When a queue is full, its oldest messages are removed and counted in trimmedDeviceMsgs_total.MQTT_PERSISTENT_SESSION_DEVICE_PERSISTED_MESSAGES_TTL), or until
its message expiry interval, counted from when the broker received it, ends.A backend that subscribes to the traffic of many devices fills its queue quickly: at 1,000 msg/s the default limit covers 10 seconds offline. A backend that must ride out longer outages at high rates belongs on clustered TBMQ with APPLICATION clients, see Lite compared with TBMQ.
Measured on one host with the store’s volume throttled to the baseline of an AWS gp3 volume (3,000 IOPS, 125 MB/s), default settings, each rate in one 10-minute run. The workload: 10,000 MQTT clients, 9,000 publishers and 1,000 persistent DEVICE subscribers that each receive the topics of 9 publishers, QoS 1 both ways, 402-byte messages. Each publish reaches one subscriber, so the throughput, in + out, is twice the publish rate.
| Container | Highest sustained throughput | Ack p99 (median / worst 10-s window) |
|---|---|---|
| 2 CPUs, 2 GB (reference) | 15,000 msg/s: 7,500 in + 7,500 out | 17 / 52 ms |
| 1 CPU, 2 GB (best effort) | 7,500 msg/s: 3,750 in + 3,750 out | 24 / 28 ms |
| Measurement | Result |
|---|---|
Startup until the health endpoint reports UP (2 CPUs, 2 GB, empty store) |
About 8.5 s, on amd64 and arm64 |
| Memory at idle, 5 minutes after start | 340–390 MiB on amd64, 430–500 MiB on arm64 |
| Memory at 15,000 msg/s (in + out) for 60 minutes, 2 GB | Levels off at 870–880 MiB (amd64) |
| Image size, uncompressed | 277 MB on amd64, 296 MB on arm64 |
Memory is the resident memory (RSS) of the broker’s process. The idle figures cover a 1 GB or 2 GB container, with an empty store or one holding 10,000 credentials and 1,000 persistent sessions.
--memory on the container.STORE_MEMORY_BLOCK_CACHE_BYTES=134217728.incomingPublishMsg has fewer counters, see
Metrics.TBMQ_VERSION_CHECK_ENABLED); offline, it fails quietly.Was this helpful?