r/SoftwareEngineering • • Mar 24 '26

Why are Event-Driven Systems Hard?

https://newsletter.scalablethread.com/p/why-event-driven-systems-are-hard
30 Upvotes

13 comments sorted by

View all comments

Show parent comment

22

u/mattgen88 Mar 24 '26
  1. You shouldn't care if the listener is ready. If you do, it shouldn't be using asynchronous communication
  2. Sure do. Never had an issue with this.
  3. Also correct. If you needed events across partitions to be responded to in order, you chose the wrong architecture. Events allow for fanning out. Events on the same entity must stay on the same partition to stay in order. Fanning out means many listeners and they just handle their work queue. They don't care about any other work queue.
  4. Once again, that's a complaint about wanting synchronous operations in a distributed and asynchronous architecture. Wrong choice.
  5. Yep. It's hard. But it's also really good at building decoupled, distributed, scalable services that are incredibly fault tolerant. If that's what you need, it works. If it isn't, don't use it.

12

u/femio Mar 25 '26

lol right, it's truly that simple, if only you were the one building Photoshop it'd probably be bug free

4

u/Jaded-Plant-4652 Mar 25 '26

It's almost like bugs in software are due to mistakes in coding. Makes you wonder...

4

u/asarathy Mar 24 '26

Yeah a lot of the issues being listed here fall into I am using Event Driven Systems in ways they weren't designed or architected to support. Even the original post.

Of course Event Driven is not good for everythiing and every case, and probably as usual you had bad architects getting an Event Driven Hammer and deciding everything was a nail with no need for modifications...

2

u/robby_arctor Mar 25 '26 edited Mar 25 '26
  1. You shouldn't care if the listener is ready. If you do, it shouldn't be using asynchronous communication

Why doesn't this apply to client-server communication?

The client absolutely has to care if the server is ready.

Edit: if by "shouldn't care", you mean "needs to handle and think about", then definitely agreed.