La

LavinMQ, an open-source message broker written in Crystal

Hacker News

LavinMQ, an open-source message broker written in Crystal

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?

Share card

Actual performance

16points
6comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: dock, single, open · Missing: mac, agents, macos
93%93% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, 000, io · Missing: https docs, excited, just released
68%68% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
46%46% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host, calls · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
25%25% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

IM
IMAP-based message broker client written in Go40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

IMAP-based message broker client written in Go

Hacker News87
An
An open-source SAS interpreter, written by agents70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An open-source SAS interpreter, written by agents

Hacker News5
Ta
TableFlow – open-source CSV importer written in Go76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TableFlow – open-source CSV importer written in Go

Hacker News3
Gr
GraphQL-go-tools, open source GraphQL Engine, written in Golang78%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL-go-tools, open source GraphQL Engine, written in Golang

Hacker News10
Op
Open-source Android game written in Go64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-source Android game written in Go

Hacker News12
Fa
Fast open-source autograding library written in Django72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fast open-source autograding library written in Django

Hacker News3
Fa
Fast open-source autograding library written in Django72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fast open-source autograding library written in Django

Hacker News1
Ma
MaChat: An open source chat server written in Go75%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MaChat: An open source chat server written in Go

Hacker News4
Ty
Tyk – Open Source API Gateway written in Golang60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tyk – Open Source API Gateway written in Golang

Hacker News45
Ka
KafkaLite – A simple message broker inspired by Kafka47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

KafkaLite – A simple message broker inspired by Kafka

Hacker News39