News for hackers. Stuff that matters.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by blowski on Thursday September 30, 2021 @01:10AM (#28703399)
I work on a bog standard ERP that was originally CRUD, but a whole module was refactored to event sourcing so clients could have a log and rollback.

A couple of months back, a QA review reported a bug - the log system didn’t work. Turns out it’s never worked. Nobody has ever done a rollback either.

Re:The Reactive Monolith – How to Move from CRUD to Event So... by shironandon on Thursday September 30, 2021 @02:39AM (#28703786)
Was working on a client's stack and this one critical piece using ES (written by "experts" who had since left the company) was throwing an error every week at 2 AM triggering alerts and chaos.

After investigation I found nobody understood what it was doing or why. I thereby found the safest approach was to delete the ES implementation.

After that everything worked and everyone was happy.

Re:The Reactive Monolith – How to Move from CRUD to Event So... by dm3 on Thursday September 30, 2021 @02:46AM (#28703816)
I understand this thread is about dumping on ES... However, I must notice in your case it was an audit log. An ES system wouldn't work at all without access to events.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by blowski on Thursday September 30, 2021 @03:38AM (#28704024)
Yeah, the ES side of the system worked but was completely unnecessary. So loads of extra complexity, with no value for the business.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by kephasp on Thursday September 30, 2021 @08:33AM (#28705560)
If the ES is "unnecessary", then it's not ES by definition. If events are not your source of truth, it's not event sourcing, just event logging.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by blowski on Thursday September 30, 2021 @09:52AM (#28706302)
I’m not sure what you mean. A car that sits in the driveway never being driven is still a car.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by nivertech on Thursday September 30, 2021 @10:26AM (#28706700)
It's a cargo-cult car;)
Re:The Reactive Monolith – How to Move from CRUD to Event So... by square_usual on Thursday September 30, 2021 @02:21AM (#28703715)
Oh yeah, I've run into similar situations so many times. A critical piece of functionality was overnegineered and shipped, only months later did we find out that it never worked, and nobody found out because nobody used it.
Re:The Reactive Monolith – How to Move from CRUD to Event So... by classabove on Thursday September 30, 2021 @01:59AM (#28703629)
this is absolutely terrifying
Re:The Reactive Monolith – How to Move from CRUD to Event So... by fullstackchris on Thursday September 30, 2021 @10:02AM (#28706422)
not if nobody uses it ¯\_(ツ)_/¯
Re:The Reactive Monolith – How to Move from CRUD to Event So... by nickkell on Thursday September 30, 2021 @11:24AM (#28707429)
It's similar to database backups - hopefully you'll never need it, but at some point you might. At that point you'd hope your data was intact
Re:The Reactive Monolith – How to Move from CRUD to Event So... by blowski on Thursday September 30, 2021 @07:17PM (#28712446)
The cost of doing a database backup is usually much lower than the cost of doing event sourcing.