News for hackers. Stuff that matters.
Re:Microservices – architecture nihilism in minimalism's clo... by dragonwriter on Monday November 02, 2020 @09:42PM (#24975833)
> Monoliths can do transactionally consistent stuff.

So can microservices, both internal to the service (via simple transactions) and between services (via distributed transactions, e.g., 2PC), though a good service design minimizes the need for the latter and is mostly guided by consistency boundaries as to where to draw service boundaries.)

(It's true that there are naive microservices architectures pursued that are essentially normalized relational designs with a one-service-per-table rule, but that's just bad—and usually cargo-cult—design.

Re:Microservices – architecture nihilism in minimalism's clo... by chousuke on Tuesday November 03, 2020 @05:59AM (#24978440)
Sure you can do transactions across services. Do you really want to deal with the problem of distributed consensus though? If software especially built to deal with it often gets it wrong (as I think Jepsen tests have frequently demonstrated), what are the chances your team is going to succeed and not build a distributed monolith instead?

I suppose in the end it depends on if you want to trade the hard problem of managing a monolith for possibly a much harder problem.

I find that for these discussions, the definition of a microservice is too nebulous. Personally I think that if you have "state" that crosses service boundaries (ie. a fault in either service causes the loss of that aggregate state) you have instead built a distributed monolith.