EMQX icon

EMQX

Scalable open-source MQTT broker

Messaging Apache-2.0
EMQX illustration

What is this?

EMQX is a high-performance MQTT broker built for scale. It can handle millions of concurrent connections, but runs equally well on a single edge device. It includes a built-in web dashboard for monitoring connections, viewing live message flow, and managing authentication rules.

Unlike simpler brokers, EMQX includes built-in rule engine capabilities for message transformation and routing — you can filter, enrich, or redirect messages without writing external code.

Note: EMQX serves as the application data plane only. It is not the Margo transport layer. Margo uses pull-based HTTPS REST with RFC 9421 signatures for device management communication.

Example: how a factory uses it

A semiconductor fab has 2,000 sensors reporting equipment state every second — vacuum levels, gas flows, wafer temperatures. EMQX handles the message volume on the edge gateway without breaking a sweat. The process engineer opens the EMQX dashboard, creates a rule that routes any “pressure below threshold” message directly to an alarm topic, and another rule that downsamples the data to 1-per-minute for long-term storage. All configured through the web UI, no code changes needed.

Network Topology

graph LR
    subgraph Factory Floor
        S1[Temp Sensors]
        S2[Vibration Sensors]
        S3[PLC Gateway]
    end

    subgraph Edge Gateway
        EMQX[EMQX Broker
:1883 MQTT
:18083 Dashboard] end subgraph Subscribers NR[Node-RED :1880] GF[Grafana :4318] CL[Cloud Export] end S1 & S2 & S3 -->|publish| EMQX EMQX -->|subscribe| NR & GF & CL

Import this app

Paste this into your Margo manager to import the app:

public.ecr.aws/g2n4p2m7/belden-margo:1.1.1_emqx-margo-manifest

Run: oras pull public.ecr.aws/g2n4p2m7/belden-margo:1.1.1_emqx-margo-manifest

Technical details

Deployment Profiles

  • PROPOSED — quadlet (WG-PROPOSAL-02)

    Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64.

Application Description (margo.yaml)

apiVersion: margo.org/v1alpha1
kind: ApplicationDescription
id: com-belden-emqx
metadata:
  name: "EMQX"
  version: 1.1.0+emqx-margo-manifest
  description: "High-performance MQTT broker for IoT and edge computing"
  catalog:
    application:
      tagline: "Scalable open-source MQTT broker"
      tags:
        - "iot"
        - "mqtt"
        - "broker"
        - "edge-computing"
    organization:
      - name: "EMQ Technologies"
        site: "https://www.emqx.io"

deploymentProfiles:
  - id: "quadlet-v1"
    type: "quadlet"
    description: "Systemd-native deployment using Podman Quadlet. Supports amd64 and arm64."
    requiredResources:
      cpu:
        cores: 0.5
        architectures:
          - amd64
          - arm64
      memory: "512Mi"
      storage: "512Mi"
      interfaces:
        - type: ethernet
    components:
      - name: "emqx-quadlet"
        properties:
          repository: oci://public.ecr.aws/g2n4p2m7/belden-margo
          revision: 1.1.1_emqx-quadlet
          wait: true
          timeout: "5m0s"

parameters:
  mqttPort:
    value: 1883
    targets:
      - pointer: "MQTT_PORT"
        components:
          - emqx-quadlet

  dashboardPort:
    value: 18083
    targets:
      - pointer: "DASHBOARD_PORT"
        components:
          - emqx-quadlet

  dashboardUsername:
    value: "admin"
    targets:
      - pointer: "EMQX_DASHBOARD__DEFAULT_USERNAME"
        components:
          - emqx-quadlet

  dashboardPassword:
    value: "Public-2026"
    targets:
      - pointer: "EMQX_DASHBOARD__DEFAULT_PASSWORD"
        components:
          - emqx-quadlet

configuration:
  sections:
    - name: "MQTT"
      settings:
        - parameter: mqttPort
          name: "MQTT Port"
          immutable: false
          schema: mqttPortSchema

    - name: "Dashboard"
      settings:
        - parameter: dashboardPort
          name: "Dashboard Port"
          immutable: false
          schema: dashboardPortSchema

        - parameter: dashboardUsername
          name: "Admin Username"
          immutable: false
          schema: dashboardUsernameSchema

        - parameter: dashboardPassword
          name: "Admin Password"
          immutable: false
          schema: dashboardPasswordSchema

  schema:
    - name: mqttPortSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

    - name: dashboardPortSchema
      dataType: integer
      minValue: 1
      maxValue: 65535
      allowEmpty: false

    - name: dashboardUsernameSchema
      dataType: string
      allowEmpty: false

    - name: dashboardPasswordSchema
      dataType: string
      allowEmpty: false

Podman Quadlet Units

PROPOSED — quadlet (WG-PROPOSAL-02)

emqx.container

[Unit]
Description=EMQX MQTT broker
After=network-online.target

[Container]
Image=docker.io/emqx/emqx:5.8.4
PublishPort=${MQTT_PORT}:1883
PublishPort=${DASHBOARD_PORT}:18083

HealthCmd=emqx ping
HealthInterval=30s
HealthTimeout=10s
HealthRetries=3
HealthStartPeriod=30s

[Service]
Restart=always
Environment=MQTT_PORT=1883
Environment=DASHBOARD_PORT=18083
Environment=EMQX_DASHBOARD__DEFAULT_USERNAME=admin
Environment=EMQX_DASHBOARD__DEFAULT_PASSWORD=Public-2026

[Install]
WantedBy=default.target

Container Images

Image Reference
docker.io/emqx/emqx:5.8.4

License

Apache-2.0