deniz.in

Markets

Weather

Loading weather

· via Hacker News – Front Page (native)

Eclipse Mosquitto open-source MQTT broker reaches Hacker News front page

The GitHub repository for Eclipse Mosquitto, an open-source broker that supports MQTT 5.0, 3.1.1 and 3.1, hit Hacker News's front page, putting a staple IoT messaging tool back in the spotlight.

Eclipse Mosquitto open-source MQTT broker reaches Hacker News front page

What happened

The GitHub repository for Eclipse Mosquitto, an open-source message broker that speaks MQTT, landed on the Hacker News front page on November 15, giving renewed visibility to a project that has become a fixture in many IoT stacks. The submission links straight to the project's source repository, and the detail below comes from the documentation hosted there.

What Mosquitto provides

According to the repository, Mosquitto implements a server for three generations of the MQTT protocol: 5.0, 3.1.1 and 3.1. That range matters in practice, because it lets a single broker serve both modern clients and older ones that have never been upgraded.

Alongside the broker itself, the project ships client libraries for C and C++ so applications can embed MQTT connectivity directly, plus a set of command line tools. mosquitto_pub, mosquitto_sub and mosquitto_rr handle publishing and subscribing from the shell, while mosquitto_ctrl, mosquitto_signal and mosquitto_passwd cover administration, including management of username and password credentials.

For anyone who wants to experiment with the protocol before installing anything, the project also runs a public test server at test.mosquitto.org.

Getting started and the security defaults

Binary packages generally start the broker automatically, and the quick start in the documentation is just two commands: subscribe to a topic with mosquitto_sub -t 'test/topic' -v, then publish to it with mosquitto_pub -t 'test/topic' -m 'hello world'.

The default configuration deliberately restricts anonymous, unauthenticated access to the local machine, which the documentation describes as useful only for initial testing. Accepting connections from other computers requires a configuration file — binary installs typically place one at /etc/mosquitto/mosquitto.conf — where you define a network listener and decide on an authentication scheme. The documentation is explicit that a publicly reachable broker should not allow anonymous access, and it points readers toward the available authentication methods and the dynamic security plugin for finer-grained control.

Building and packaging

Prebuilt binaries are available from the project's download page for a range of platforms. Building from source uses CMake on Windows and macOS and plain make on other platforms. cJSON is the only mandatory external dependency; the rest is optional and can be toggled at build time. OpenSSL brings TLS support, SQLite enables broker persistence, libedit powers the interactive shell behind mosquitto_ctrl, and libmicrohttpd adds an HTTP API to the broker. pthreads support is required for the client library's loop start and stop functions, and without it the library is not guaranteed to be thread safe, the documentation warns. Building man pages from a git checkout additionally needs xsltproc and docbook-xsl, which can be skipped.

Mosquitto is also available through Microsoft's vcpkg dependency manager, and according to the repository that port is kept current by Microsoft team members together with community contributors.

The project was written by Roger Light, with the README crediting considerable help in code and other forms from the wider community. Full documentation for the broker, the clients and the library API is published in the man pages and a separate API reference on the project's site.

Why it matters

MQTT is a lightweight publish/subscribe protocol and one of the standard ways to move telemetry between constrained devices and back-end services, which makes the broker a piece of infrastructure that a large amount of IoT work quietly depends on. Mosquitto's appeal is breadth: one open-source process that speaks every still-relevant protocol version, embeddable client libraries, TLS, persistence and a pluggable security model, available prebuilt for common platforms.

The security posture is also a useful design lesson. The broker treats anonymous access as a local, testing-only convenience and pushes anyone exposing it to a network toward explicit listeners and real authentication — a sensible default for software that is easy to install and easy to forget about.

For teams evaluating brokers for device fleets, or developers who simply need a dependable local MQTT endpoint during development, the renewed attention on Hacker News points at a project that has already done the unglamorous engineering work.

  • #mqtt
  • #iot
  • #open-source
  • #eclipse-mosquitto
  • #message-broker

Related posts