MQTT 5 broker · built from scratch in C

Connect your devices to a broker that keeps up.

GMQ is a fast, multi-tenant MQTT 5 broker. Every device authenticates with its own certificate, every customer gets an isolated namespace, and a single small cloud node moves tens of thousands of messages per second.

Built for device fleets

Security, isolation and throughput in the broker itself, not in a plugin.

Mutual TLS for every device

Devices connect over TLS with a client certificate. Generate keys on the device and send only a CSR: the private key never leaves it.

Your own certificate authority

Each account has its own CA. Issue certificates from the portal, with an API key from your production line, or sign them offline with an intermediate CA, or bring your company's CA.

Isolated tenants

Client IDs and topics live in your account's namespace. Other accounts cannot see or reach your devices, and per-account rate limits keep a noisy neighbour from slowing you down.

Keep your topics

Products already on the market keep their own client IDs and topics: the broker adds and removes your account's prefix transparently.

MQTT 5, done properly

QoS 0, 1 and 2, persistent sessions, retained messages, shared subscriptions, message expiry, topic aliases and Will messages. Sessions and retained messages are journaled to disk.

Usage you can see

Active devices this month, connections, messages and bytes in and out, day by day, in the portal. Revoke a device or a whole intermediate CA with one click.

Measured, not promised

Load tests on a single 4 vCPU Arm cloud node, mutual TLS, 1000 publishers and 1000 subscribers.

28,000QoS 1 messages per second
≤ 10 ms99th percentile latency at that rate
~48 KiBmemory per connected device
0messages lost, duplicated or reordered

One node holds 56,000 connected devices in 2.8 GiB of memory. Figures from our load-test runs; your results depend on payload, QoS and network.

Up and running in three steps

  1. Create your account

    You get your own tenant, its certificate authority and a namespace for client IDs and topics.

  2. Issue a device certificate

    From the portal, or with gmq-provision and an API key: the key is generated on the device, the portal signs the CSR.

  3. Connect any MQTT 5 client

    Mosquitto, Paho, or your firmware's MQTT 5 stack, over TLS on port 8883.

Quickstart

Replace acme with your account ID.

# publish one reading with the Mosquitto clients
mosquitto_pub -V mqttv5 -h mqtt.example.com -p 8883 \
  --cafile broker-ca.pem --cert device.pem --key device.key \
  -i acme/sensor-01 -t acme/sensors/temperature -m 21.5 -q 1
# the same with Python (paho-mqtt 2.x)
import paho.mqtt.client as mqtt

c = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,
                client_id="acme/sensor-01", protocol=mqtt.MQTTv5)
c.tls_set(ca_certs="broker-ca.pem", certfile="device.pem", keyfile="device.key")
c.connect("mqtt.example.com", 8883)
c.loop_start()
c.publish("acme/sensors/temperature", "21.5", qos=1).wait_for_publish()
c.disconnect()

Try it free

A free plan to see how GMQ behaves with your own devices and your own traffic. No credit card.

The free plan is open to the first 100 accounts. It runs on a single node without an SLA: use it to evaluate GMQ, not for production.

Free

€0 / month

  • 10 devices connected at once
  • 20 messages per second
  • 10 KB per second
  • Your own CA, portal and usage reports
  • All MQTT 5 features, QoS 0, 1 and 2
Start free

Already have an account? Sign in

Questions

Which clients can connect?

Any MQTT 5 client with TLS and client certificates: we test with the Mosquitto clients and Eclipse Paho. MQTT 3.1.1 clients are refused: GMQ speaks MQTT 5 only.

Why client certificates instead of passwords?

A certificate cannot be guessed or reused from a leaked database, and it can be revoked one device at a time. With a CSR the private key never leaves the device.

What happens when I go over the free plan's limits?

Nothing is dropped. Messages beyond the rate wait and your devices are slowed down by TCP; connections beyond the device limit are refused with the MQTT 5 reason "Quota exceeded".

Can I use the free plan in production?

Please don't. It runs on one node with no redundancy and no SLA, and is meant for evaluation.

Can I keep the topics my devices already use?

Yes. With a mounted account your devices use their own client IDs and topics, and the broker adds your account's prefix for them.