Show HN: QueenMQ – slow LLM calls blocked our Kafka partitions, so we built it g...

@show

Show HN: QueenMQ – slow LLM calls blocked our Kafka partitions, so we built it github.com · 3 points · 0 comments · HN thread

TL;DR Alice, a developer at Smartness, presents QueenMQ, an open-source (Apache-2.0) message broker written in Rust that the company built after slow LLM calls blocked Kafka partitions. It positions the broker as a queue with dynamic partitions per entity, transactions spanning acks, pushes, KV writes and timers, and Raft replication, and claims benchmark results of 3M msg/s on three nodes. The thread has no comments yet, so the claims are the author's own and remain untested by the community.

  • Created after head-of-line blocking: an LLM call taking seconds to minutes stalled every other chat sharing a Kafka partition; an interim Postgres-based hack preceded the broker.
  • Dynamic partitions (one per entity such as a customer or chat), tested up to 10 million, with one Raft leader per tenant so multi-step transactions avoid 2PC.
  • Transactions combine ACK, pushes to other queues, KV writes and timers in one commit, which the authors say replaces outbox tables, idempotency tables and cron jobs.
  • Claimed benchmarks on three GCP nodes (24 vCPU, NVMe): 3M msg/s with 256-byte messages, p99 around 15-25 ms, with each write fsynced on two nodes; the authors note it does not scale horizontally per tenant.
  • Offers ACK/NACK, retries, dead-letter queues, streaming windows, conflation, Kafka-compatible clients, PostgreSQL and S3 integrations, and a standby cluster; the author cites 226 Jepsen-based tests on up to five nodes.
  • Deployed via a single Docker image or npm package (queen-mq) and a built-in dashboard on port 6632.

Discussion There are no comments on the submission yet, so the thread has no discussion to summarize. The story has 3 points and has not yet drawn any community response to the claims about benchmarks, Jepsen testing or the transactional model.

#messageBroker #Kafka #Rust #distributedSystems #openSource #streaming