Skip to content

Status and known gaps

PopSub is a single process with a data directory. It doesn’t cluster or replicate, so one machine is the whole deployment. It’s built for small applications that want durable, realtime messaging with guarantees that are written down, and it’s at version 0.x, so the protocol and client APIs can still change. The changelog says what changed in each release.

It doesn’t try to compete with Kafka or NATS on throughput, and it doesn’t deliver exactly once: every message carries its topic and seq, so consumers can spot repeats. If you need replication today, use NATS JetStream or Kafka. If your devices only speak MQTT, use Mosquitto or EMQX.

This is section 12 of docs/DESIGN.md, most important first. The broker itself is in place. Most of the gaps are about getting messages in and out, and about running it.

  1. Your own backend can’t issue PopSub tokens. Tokens only come from PopSub’s login, signed with one shared secret.
  2. There’s no HTTP publish, so a serverless function has to open a WebSocket.
  3. There are no storage or topic quotas per account, so one account can fill the disk.
  4. Backups and upgrades aren’t documented, and there’s no promise yet that a new version reads an old data directory.
  1. No MQTT listener.
  2. No last will, so a dashboard can’t learn that a device dropped off.
  3. No retained “current value” that every new subscriber gets automatically.
  4. Logging in again needs the password on the device. No client certificates or per-device keys.
  5. JSON, base64 and no compression are expensive on metered links.
  1. Capacity is unmeasured. Benchmarks are planned.
  2. Power loss and a consumer that never reads aren’t covered by tests yet.
  3. A renewed TLS certificate needs a restart, and there’s no built-in Let’s Encrypt.
  4. Metrics are pushed over OTLP. There’s no Prometheus endpoint.
  5. No SECURITY.md, and the frame parser isn’t fuzzed.
  6. No Swift, Kotlin, C or MicroPython client.

Where it’s heading, clustering included, is in section 13.