Back

Show HN: BusterMQ, Thread-per-core NATS server in Zig with io_uring

134 points1 monthbustermq.sh
maxpert1 month ago

I did a similar thing few days back just not with NATS protocol (Made it pure websocket based), and with rust. Couple of questions:

- Where did you get the machine to test your server on?

- Why did you end up going with zig?

simlevesque1 month ago

Anyone can buy a 9950x on Amazon or any tech store, it's consumer hardware.

littlestymaar1 month ago

Given that this entire project is a single[1] vibe-coded commit, I really doubt the author bothered buying hardware to test it.

[1]: https://github.com/bustermq/bustermq/commits/master/

speedgoose1 month ago

Who cares whether it’s vibe coded ? As long as it’s good and well maintained over time of course.

Maybe there is a niche market for artisanal software engineering where real humans make holes in punchcards, but I would not bet.

+1
littlestymaar1 month ago
phplovesong1 month ago

[flagged]

steeve1 month ago

[flagged]

+1
whilenot-dev1 month ago
+2
littlestymaar1 month ago
jbaptiste1 month ago

My personal rig and Zig because I worked with it for a little more than a year. It was a fun test to do.

dorianniemiec1 month ago

I'm also building a network server with thread-per-core and io_uring, except it's a web server, it's written in Rust, and io_uring is provided by a fork of Monoio runtime (I forked it to make it work with Windows and FreeBSD).

spicypixel1 month ago

You should at least try and align the ascii flowchart in the readme on the repo.

One day Claude will do it correctly but today is not that day.

neomantra1 month ago

Unusual tones all around in the thread here. My initial observations before reading the comments here:

* "wow, OSS projects are starting to have some pretty wild landing pages, guess it's not just AI logos at the top of the README anymore"

* "wow, all in one commit. was it vibe-one-shotted, curated private work that was squashed, or something in between"

* "wow, Zig is kind easy to read although I really don't want to learn another language in 2026 although I already started learning some to use libghostty"

* "wow, is Zig really this much performant than Golang at the tails"

* "weird it uses Bazel, doesn't Zig have it's own build system like Golang"

* "so who is the author? I see they made an GitHub org for this. Are they going to keep doing stuff after the commit and should I keep this in my messaging queue neurons? Is this some company or person I should follow"

* "the README has a misalignment, do I PR that?"

* "oh cool, it lets you tune memory and the dispatcher"

---

I never thought of exactly how it manifested, except about the single commit. I have started "vibe coding" much more as the capabilities really improved in the last few months, so that isn't intrinsically a trash approach.

But the "who" and the "how" and the "why" do matter, in terms of whether one should look at it for education or infotainment or as a potential tool.

Disclosure of the intention and method would be courteous to the community when we create and share these things. Otherwise we'll all have high cognitive burden with the amount of projects we'll be seeing in 2026!

jbaptiste1 month ago

That’s fair, I should have framed it more clearly upfront. Thanks for the feedback.

I was excited about the results. The intent was to talk about performance and architecture, not to imply this was a quick or effortless project. There’s been a lot of iteration and experimentation behind it, and I should have communicated that context better as well as the use of AI for the help.

neomantra1 month ago

I totally get it and received the offering. =) Love seeing more use of io_uring too and interesting to see how that's done in Zig. Happy New Year: All the best on this and other projects.

koakuma-chan1 month ago

Is it bad if I work in private and then squash?

neomantra1 month ago

No, that’s very common and appreciated, especially when curated. All my comments there were musings, not value judgements.

ngrilly1 month ago

Why use Basel instead of Zig build tools, as it’s all written in Zig anyway?

ahoka1 month ago

That was in the prompt.

phplovesong1 month ago

[flagged]

jpgvm1 month ago

Upvote for Bazel. I think these days I place a lot more value on how well an ecosystem slots into Bazel/friends because monorepos are increasingly more useful and relevant.

So nice to see there are good rules for Zig and that folks are using them.

Also ironically I think starting with Bazel/Buck/whatever your poison of choice is almost always a good move even if people tell you it's overkill. The easiest time to do it as at the beginning, all times after that is too hard and the marginal cost of building with it from the start is minimal.

carverauto1 month ago

agreed, love Bazel + BuildBuddy

owyn1 month ago

Downvote for this web site is a horror movie billboard and zig already has a build system which is zig and that's one of it's neat features.

fellowmartian1 month ago

People are free to knock themselves out with Bazel if they’re into that kind of masochism, but having it as the ONLY way to build your OSS project is a big no.

simlevesque1 month ago

Yeah I'm never touching Bazel again. I value my sanity.

steeve1 month ago

well, bazel is by far the most reliable one so I'm not sure why you're complaining

synalx1 month ago

The problem with "the language tooling is already a build system" is that cross-language dependency chains are a thing. The moment you need a Rust or Zig file to be regenerated and recompiled when a JSON schema or .proto file is updated, you're outside what most of those language-specific toolchains can support. This is where Bazel absolutely shines.

Cloudef1 month ago

Zig build system can do all that just fine though

eska1 month ago

If all of your dependencies need to use the same build system as your project then your build system/process is defect anyway. It should be possible to invoke a foreign build system as part of your build.

steeve1 month ago

and it would be terrible for hermeticity and reproducibility, nix tries very hard and gets mediocre results

perhaps, just perhaps, why people go through the trouble not because they are idiots but for actual engineering reasons

dlahoda1 month ago

Rust build system can do all that just fine though

snehesht1 month ago

Wow, the whole thing (website, github repo) is down.

smarx0071 month ago

I am assuming the message durability guarantees lean towards YOLO rather than ACID? See also https://news.ycombinator.com/item?id=46196105

codys1 month ago

> I am assuming the message durability guarantees lean towards YOLO rather than ACID?

"Core" nats doesn't have durability. Nats jetstream is the api built on top of nats that in the main nats-server impl provides durability. Jepsen tested Nats Jetstream.

Also from your link:

> Regular NATS streams offer only best-effort delivery, but a subsystem, called JetStream, guarantees messages are delivered at least once.

The project linked here does not implement the nats jetstream api, just normal nats.

So yes, it seems its same (documented, understood) "yolo" as normal nats.

samgranieri1 month ago

This looks fairly cool. If I had the production need for this, I’d definitely consider this.

I paired with Claude and simply added nats.c to the zig buildup system for my zig project at work. It works like a charm.

BiteCode_dev1 month ago

Does it have a similar system to Jetstream? If yes, does it address the reliability issues Jetstream has been criticized about lately?

jbaptiste1 month ago

Absolutely not and will never have.

mindslight1 month ago

Putting aside the whole presenting slop-coded things as cromulent projects, is anyone else tired of this constant myopic focus on performance? I don't need a message queue that can "saturate the bandwidth of the next generation of hardware". Rather I want middleware that is easy to use - simple to set up (not hundreds of configuration knobs for optimizing performance), reliable (can run clustered on a few instances on its own, not using k666s or anything, and handle instances going away for a few weeks if one dies or I'm reconfiguring things), has good semantics that won't encourage Heisenbugs down the line (eg look at MQTT's actual semantics versus how it's incorrectly used by Home Assistant generic MQTT endpoints), and so on. I get that there's no surveillance industry money backing projects aimed at individual users, but it's still pretty sad that individuals creating projects in their spare time are still focusing on features desired by the surveillance industry.

hhhhhggg1 month ago

jepsen on nats still gives me anxiety

PaywallBuster1 month ago

Comparison/benchmark to other alternatives?

mertleee1 month ago

[dead]

phplovesong1 month ago

[flagged]

littlestymaar1 month ago

And it's gone…

steeve1 month ago

[flagged]

ozgrakkurt1 month ago

Who would believe someone that writes something like this online?

phplovesong1 month ago

Not a single serious dev would use crap like this near something that resembles production. Why even bother sharing a vibed spaghetti ball like this?

littlestymaar1 month ago

[flagged]

jbaptiste1 month ago

Oh god no. Just having fun with zig and being a little over enthusiast I guess. I'm a big fan of nats, and really wanted to see how far you can push the idea if you do it differently. I was not expecting that tbh but, hpn too!

steeve1 month ago

nobody cares about the website being done with AI because the code of the project itself is not AI

you need to touch grass

girvo1 month ago

The code of the project absolutely does look like it was done with AI lol, it’s a single commit…

jbaptiste1 month ago

Claude did rewrote lots of my original messy code. No shame in that? But in the end the interest was in the underlying architecture, applied to nats protocol. Anyway.

girvo1 month ago

Which is totally fine, I use Claude Code a bunch myself. I said nothing about shame, just that one single commit plus a website that looks vibe coded together has all the hallmarks of AI-driven code.

throw-qqqqq1 month ago

Dude, when I move projects to GitHub I also often collapse everything into a single commit.

I do this to avoid having to check e-mail addresses and names in commits - maybe I mistakenly made a commit from my work account etc.

After the “initial” commit making it all public, I start to work “in the open”. I see many others doing it the same way.

That is NOT a reliable indicator of slop!

+1
cbzbc1 month ago
littlestymaar1 month ago

Nothing individually is a good indicator of slop in itself, a human could also have written this readme full of Claud-isms and a borked ASCII schema or the code littered with idiosyncratic comments.

It's the convergent set of clues that makes the case.

girvo1 month ago

Good thing it's not the only signal then.

steeve1 month ago

[flagged]

+1
NlightNFotis1 month ago
+1
littlestymaar1 month ago