LavinMQ, an open-source message broker written in Crystal
Details
- External ID
- 47933145
- Source
- HN
- Company
- —
- Product
- LavinMQ, an open-source message broker written in Crystal
- Website domain
- github.com
- Launched
- April 28, 2026
- Cohort
- —
- Upvotes
- 16
- Upvotes percentile
- 0.7197943444730077
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hi HN. I'm Carl, creator of LavinMQ.LavinMQ is an open-source message broker. AMQP 0-9-1, MQTT, HTTP and streaming. Single binary, minimal resource use. If you know RabbitMQ, it's that (but running on a fraction of hardware).We're the team behind CloudAMQP where we've hosted RabbitMQ for 14 years. Sometimes customers hit issues we couldn't fully explain / work around. So we built our own broker, in order to provide solutions where we previously couldn't (which is much easier when you control the full stack). It all started by me building an open-source AMQP proxy to handle short-lived connections for a customer, to avoid heavy connection churn on cpu. Once the protocol was implemented, adding a persistence layer seemed like a fun challenge. How hard could it be? Turns out the protocol was the easy part. Reliable disk storage, ack handling, and replication was harder. It took years. Our first release was pushed in 2020 and today it runs on 5,000+ production instances on CloudAMQP. LavinMQ is written in Crystal (LLVM-compiled, Go-like concurrency, Ruby-like syntax). Messages go straight to disk via memory-mapped files, no in-memory cache. Append-only writes for both messages and acks. The whole design is built around minimizing memory copies, allocations and syscalls.Numbers: ~580k msgs/sec on a t4g.micro (2 vCPU, 1 GB RAM). Over 1M msgs/sec on a c8g.large (2 vCPU, 4 GB).Try it: docker run -p 15672:15672 -p 5672:5672 cloudamqp/lavinmq We are curious to hear: how are you handling messaging today? What would make you consider switching broker?
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Data infrastructure
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- message broker written in crystal
- Manually corrected
- False
Could you build this?
No Writing a compliant, high-throughput, low-latency message broker supporting AMQP 0-9-1 and MQTT with persistent disk queues requires deep protocol internals, systems programming, and concurrency expertise.
What it would actually take: The product requires implementing full binary wire protocols for AMQP 0-9-1 and MQTT, designing a durable write-ahead log (WAL) and memory-mapped page cache, and engineering high-concurrency event loops with deterministic message acknowledgments. It demands deep experience in low-level systems languages (like Crystal/Rust/Go) and network protocol validation against official compliance test suites.
Discussion
6 comments analyzed.
Competitors mentioned: RabbitMQ
Concerns raised: Message loss window when leader dies before follower replication, Publisher confirm guarantees unclear in failure scenarios
Feature requests: Configurable stronger durability guarantees (msync, follower ack, follower fsync)
Competitors
Other products that read as similar to this one — 45 launches clear the similarity bar, closest 8 shown.
Attention rank: #18 of 46 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 178 days after the earliest competitor.
- BlazeMQ · hn · 2026-02-10 · 5 upvotes · similarity 0.48
- Turn wire protocols into structured statements LLMs can understand · hn · 2026-09-10 · 6 upvotes · similarity 0.42
- fmsg · hn · 2026-04-20 · 5 upvotes · similarity 0.38
- Bash4LLM+ · hn · 2026-06-28 · 60 upvotes · similarity 0.37
- WeMQTT — Native MQTT Client for Mac · ph · 2026-09-30 · 1 upvotes · similarity 0.36
- UnisonDB · hn · 2025-11-01 · 17 upvotes · similarity 0.36
- Widen · hn · 2026-07-31 · 7 upvotes · similarity 0.36
- Mqtt Broker for 10 Years · hn · 2026-06-01 · 15 upvotes · similarity 0.35
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a data infrastructure tool for Media & entertainment yet.