News for hackers. Stuff that matters.
Re:Jepsen: NATS 2.12.1 by belter on Monday December 08, 2025 @03:02PM (#46196887)
> NATS is a fantastic piece of software.

- ACKed messages can be silently lost due to minority-node corruption.

- Single-bit corruption can erase up to 78% of stored messages on some replicas.

- Snapshot corruption may trigger full-stream deletion across the cluster.

- Default lazy-fsync wipes minutes of acknowledged writes on crash.

- Crash + delay can produce persistent split-brain and divergent logs

Are you the Mother? Because only a Mother could love such a ugly baby....

Re:Jepsen: NATS 2.12.1 by mring33621 on Monday December 08, 2025 @03:45PM (#46197421)
NATS was originally made for simple, fast, ephemeral messaging.

The persistence stuff is kinda new and it's not a surprise that there are limitations and bugs.

You should see this report as a good thing, as it will add pressure for improvements.

Re:Jepsen: NATS 2.12.1 by njuw on Monday December 08, 2025 @05:12PM (#46198347)
> The persistence stuff is kinda new and it's not a surprise that there are limitations and bugs.

It's not really that new. The precursor to JetStream was NATS Streaming Server [1], which was first tagged almost 10 years ago [2].

[1] https://github.com/nats-io/nats-streaming-server

[2] https://github.com/nats-io/nats-streaming-server/releases/ta...

Re:Jepsen: NATS 2.12.1 by Thaxll on Monday December 08, 2025 @03:16PM (#46197072)
"PostgreSQL used fsync incorrectly for 20 years"

https://archive.fosdem.org/2019/schedule/event/postgresql_fs...

It did not prevent people from using it. You won't find a database that has the perfect durability, ease of use, performance ect.. It's all about tradeoffs.

Re:Jepsen: NATS 2.12.1 by dijit on Monday December 08, 2025 @03:33PM (#46197265)
Realistically speaking, postgresql wasn’t handling a failed call to fsync, which is wrong: but materially different from a bad design or errors in logic stemming from many areas.

Postgresql was able to fix their bug in 3 lines of code, how many for the parent system?

I understand your core thesis (sometimes durability guarantees aren’t as needed as we think) but in postgresql’s case, the edge was incredibly thin. It would have had to have been: a failed call to fsync and a system level failure of the host before another call to fsync (which are reasonably common).

It’s far too apples to oranges to be meaningful to bring up I am afraid.

Re:Jepsen: NATS 2.12.1 by Thaxll on Monday December 08, 2025 @03:48PM (#46197462)
NATS allows you to fsync every calls, it's not just the default value.
Re:Jepsen: NATS 2.12.1 by hurturue on Monday December 08, 2025 @03:06PM (#46196938)
do you have a better solution?

as they would say, NATS is a terrible message bus system, but all the others are worse

Re:Jepsen: NATS 2.12.1 by adhamsalama on Monday December 08, 2025 @03:16PM (#46197070)
Are RabbitMQ's durable queues worse?
Re:Jepsen: NATS 2.12.1 by johncolanduoni on Monday December 08, 2025 @05:33PM (#46198569)
Pulsar can do most of what NATS can, but at a much higher cost in both compute and operations (though I haven’t seen a head-to-head of each with durability turned on), along with some simply different characteristics (like NATS being suitable for sidecar deployment). NATS is fantastic for ephemeral messaging, but some of this report is really concerning when JetStream has been shipping for years.
Re:Jepsen: NATS 2.12.1 by cedws on Monday December 08, 2025 @03:37PM (#46197305)
Interested to know if you found these issues yourself or from a source. Is Kafka any more robust?
Re:Jepsen: NATS 2.12.1 by rockwotj on Monday December 08, 2025 @03:39PM (#46197329)
Re:Jepsen: NATS 2.12.1 by KaiserPro on Monday December 08, 2025 @04:22PM (#46197815)
NATS is ephemeral. if you can accept that, then you'll be fine.
Re:Jepsen: NATS 2.12.1 by tptacek on Monday December 08, 2025 @04:42PM (#46198048)
This is just a tl;dr of the article with a mean-spirited barb added.