News for hackers. Stuff that matters.
Re:McDonalds Event Driven Architecture by kemiller2002 on Tuesday December 06, 2022 @07:32PM (#33889141)
Well, I mean really most of the micro service architectures are just monoliths with network calls between the components.
Re:McDonalds Event Driven Architecture by 411111111111111 on Tuesday December 06, 2022 @07:52PM (#33889306)
That's called distributed monolith. It's pretty much guaranteed to happen if the developers don't introduce a lot of redundancy while splitting up the services.
Re:McDonalds Event Driven Architecture by adam_arthur on Tuesday December 06, 2022 @07:56PM (#33889343)
If your services need to be chatty with eachother then the boundaries of the services are wrong.

Hopefully by redundancies, you dont mean sharing data access logic

Re:McDonalds Event Driven Architecture by b20000 on Tuesday December 06, 2022 @07:43PM (#33889245)
yeah, so what about locking? it must be a nightmare to make sure that the components all work together as intended...
Re:McDonalds Event Driven Architecture by xwolfi on Tuesday December 06, 2022 @07:59PM (#33889369)
So, normally, you do not need to lock. If all your services are single threaded, and you have a good transactional model, you only need to duplicate services to create parallel routes.

You need to lock when you write a shared area from multiple sources with no opinion on write ordering.

But say your pipeline is client-> decorator -> processor -> observer with client publication -> external partner, each input will go into a set of instances different from the previous and next one, and rejoin at the output who will queue and order them. You have parallel heavy work and sequential light result publication. Your simple output must be as fast as the sum of your parallel routes to minimize queueing.

Ofc it s more complex, and I prefer 0 network hop myself, but I work on a large investment bank micro service system and we do not lock, and the component are both simple and complex enough that when one disappear, everything else waits or rebalances, and when it reappears it can catch up automatically, and go on. It consumes large amount of memory to keep a duplicated state in each component and persistence is not guaranteed to be on time (in fact, our persistence layer was 30 minutes behind by mid day, for years, until we dug into the 30yo sql)

Re:McDonalds Event Driven Architecture by b20000 on Tuesday December 06, 2022 @08:15PM (#33889514)
so why do you need this to be distributed and why can you not use a monolithic server application, perhaps with background threads?
Re:McDonalds Event Driven Architecture by codebje on Tuesday December 06, 2022 @08:30PM (#33889620)
One reason come to mind: Conway's law. If you have a monolithic team a monolithic server is usually a pretty good solution to a problem. If you have multiple teams you're likely to wind up with an architecture that lets them work more independently, leading to separate release schedules.

... which perhaps just shifts the question to "why do you need multiple independent teams and not just use a monolithic development team?"

Re:McDonalds Event Driven Architecture by Kamq on Tuesday December 06, 2022 @07:55PM (#33889332)
> yeah, so what about locking?

POST /lock

This is only a slight exaggeration over some of the stuff I've seen people try to pull.