News for hackers. Stuff that matters.
Re:DBus and Systemd by sph on Tuesday May 28, 2024 @03:54AM (#40498461)
> don't distribute your objects

I guess people writing microservices or services connected via the Internet didn't get the memo.

Re:DBus and Systemd by cjk2 on Tuesday May 28, 2024 @04:13AM (#40498554)
I spend all day every day working with those.

I have yet to find a single microservices architecture that could not be solved cheaper and simpler in some other way with less side effects. Plus there are some disparity between APIs and object distribution.

(Note I only work on non-google scale stuff where it is probably appropriate)

Edit: good example recently, I saw one where they implemented a complex distributed reservation pattern across microservices that gets about 100 transactions a day. They could have done it in one process with proper transaction isolation in a DB fine for about 1/100th of the total cost.

Re:DBus and Systemd by XorNot on Tuesday May 28, 2024 @05:37AM (#40498993)
Honestly the rule I put on it nowadays is, if it doesn't have a logical boundary within the organization then it doesn't need to be a separate service.

If you have 6 microservices and they're all being maintained by the same team of developers, you don't need 6 microservices. At most, I would grant maybe 2 - and that's simply because usually once something like payments and credit card handling get involved, for compliance reasons you want to really not touch it unless you have to - but that's still an organization boundary, just a self-imposed/PCI compliance based one.

Re:DBus and Systemd by khimaros on Tuesday May 28, 2024 @08:55AM (#40500277)
sounds as bit like Conway's Law
Re:DBus and Systemd by oaiey on Tuesday May 28, 2024 @08:59AM (#40500314)
Conway's law
Re:DBus and Systemd by dayjaby on Tuesday May 28, 2024 @04:01AM (#40498496)
The author of that rule explains that (well-crafted) microservices don't disobey that rule: https://martinfowler.com/articles/distributed-objects-micros...
Re:DBus and Systemd by mort96 on Tuesday May 28, 2024 @03:57AM (#40498473)
Microservices aren't about distributed objects, they're about small services which communicate via explicit IPC (such as HTTP or gRPC).