r/elixir • • 3d ago

Malachi: an open source log broker in Elixir whose topics split and merge under their clients

https://malachi-hq.github.io/malachi/blog/2026-11-25-introducing-malachi.html

I've been building Malachi, an open source log broker written in Elixir on OTP 28, and I just published a post introducing it. It is an independent implementation inspired by the public design of LinkedIn's NorthGuard, not affiliated with or endorsed by LinkedIn.

The parts that might interest this sub:

No fixed partitions for clients. A client deals in a topic, a key and a position. A topic is a set of ranges that an operator splits and merges while producers keep writing, and a consumer's position is an opaque token the new ranges accept after a split.

Acknowledged means on a majority of disks. A write is acknowledged once a majority of its segment's replicas has fsynced it. Metadata goes through Raft (`ra`), membership through SWIM.

Evidence per release. Every release runs chaos drills (killing nodes, breaking storage, bad config rollouts) and load tests on its exact code, and publishes the results with the hardware and the run-to-run noise.

It is in active development and not production-ready, so I'm mostly looking for feedback: on the client model (tokens instead of offsets), and on what you would need to see before trying something like this.

Post Introducing Malachi

Repo

Documentation

15 Upvotes

1 comment sorted by

2

u/mwkohout 3d ago

This is really cool!  Thank you for posting.

The next project where I need a distributed log I'll be sure to see if this is a fit.