News for hackers. Stuff that matters.
Re:Event Sourcing in Go: From Zero to Production by zknill on Saturday November 22, 2025 @06:12AM (#46013851)
Anyone who's built, run, evolved, and operated any reasonably sized event sourced system will know it's a total nightmare.

Immutable history sounds like a good idea, until you're writing code to support every event schema you ever published. And all the edge cases that inevitably creates.

CQRS sounds good, until you just want to read a value that you know has been written.

Event sourcing probably has some legitimate applications, but I'm convinced the hype around it is predominantly just excellent marketing of an inappropriate technology by folks and companies who host queueing technologies (like Kafka).

Re:Event Sourcing in Go: From Zero to Production by anthonylevine on Saturday November 22, 2025 @07:28AM (#46014275)
> CQRS sounds good, until you just want to read a value that you know has been written.

This is for you and the author apparently: Prating CQRS does not mean you're splitting up databases. CQRS is simply using different models for reading and writing. That's it. Nothing about different databases or projections or event sourcing.

This quote from the article is just flat out false:

> CQRS introduces eventual consistency between write and read models:

No it doesn't. Eventual consistency is a design decision made independent of using CQRS. Just because CQRS might make it easier to split, it doesn't in any way have an opinion on whether you should or not.

> by folks and companies who host queueing technologies (like Kafka).

Well that's good because Kafka isn't an event-sourcing technology and shouldn't be used as one.

Re:Event Sourcing in Go: From Zero to Production by mrsmrtss on Saturday November 22, 2025 @07:46AM (#46014370)
Yes, I don't know where the misconception that CQRS or Event Sourcing automatically means eventual consistency comes from. We have built, run, evolved, and operated quite a few reasonably sized event sourced systems successfully, and these systems are running to this day without any major incidents. We added eventually consistent projections where performance justified it, fully aware of the implications, but kept most of the system synchronous.
Re:Event Sourcing in Go: From Zero to Production by anthonylevine on Saturday November 22, 2025 @08:20AM (#46014578)
I think people lump CQRS, Event Sourcing, and event-driven into this a single concept and then use those words interchangeably.
Re:Event Sourcing in Go: From Zero to Production by andersmurphy on Saturday November 22, 2025 @09:23AM (#46015022)
Yup. It's a shame as amazing as event sourcing is it does come with complexity.

On the other hand CQRS + single writer pattern on their owncan be a massive performance win because it allows for efficient batching of views and updates. It's also much simpler to implement than a fullblown event sourcing system.

Re:Event Sourcing in Go: From Zero to Production by mrkeen on Saturday November 22, 2025 @04:05PM (#46018252)
If you segregate your read and write, i.e put a (P)artition between them, and require writes to be (A)vailable when reads are down (and vice-versa), then you're either inconsistent, or eventually-consistent.
Re:Event Sourcing in Go: From Zero to Production by zknill on Saturday November 22, 2025 @07:42AM (#46014346)
Please explain how you intend to use different models for reading and writing without there being some temporal separation between the two?

Most all CQRS designs have some read view or projection built off consuming the write side.

If this is not the case, and you're just writing your "read models" in the write path; where is the 'S' from CQRS (s for segregation). You wouldn't have a CQRS system here. You'd just be writing read optimised data.

Re:Event Sourcing in Go: From Zero to Production by azkalam on Saturday November 22, 2025 @07:55AM (#46014426)
- Write side is a Postgres INSERT

- Read side is a SELECT on a Postgres view

Re:Event Sourcing in Go: From Zero to Production by zknill on Saturday November 22, 2025 @08:11AM (#46014504)
I think you might struggle to "scale the read and write sides independently".

It's a real stretch to be describing a postgres view as CQRS

Re:Event Sourcing in Go: From Zero to Production by anthonylevine on Saturday November 22, 2025 @08:18AM (#46014565)
Huh?

That's EXACTLY what CQRS.

I think you might struggle to understand CQRS.

Re:Event Sourcing in Go: From Zero to Production by andersmurphy on Saturday November 22, 2025 @09:19AM (#46014998)
Sqlite can scale CQRS to 100000 events per second on a relatively small VPS. That's 10x what the author achieves with postgres.

You can scale them independently in that you can control the rate at which your views are read and the batch size of your updates.

The whole big win wirh CQRS is it allows for very efficient batching.

Re:Event Sourcing in Go: From Zero to Production by azkalam on Friday November 28, 2025 @01:29PM (#46081349)
But only one server can access each SQLite at a time?
Re:Event Sourcing in Go: From Zero to Production by mrkeen on Saturday November 22, 2025 @11:42AM (#46016026)
I've heard worse, e.g.

You use POST for your Cs and GET for your Qs. Tada!

Re:Event Sourcing in Go: From Zero to Production by anthonylevine on Saturday November 22, 2025 @08:21AM (#46014580)
> Most all CQRS designs have some read view or projection built off consuming the write side.

This is flat out false.

Re:Event Sourcing in Go: From Zero to Production by mrkeen on Saturday November 22, 2025 @07:43AM (#46014350)
> Just because CQRS might make it easier to split

Or segregate even.