News for hackers. Stuff that matters.
Re:If All You Have Is a Database, Everything Looks Like a Nail by jayd16 on Tuesday December 08, 2020 @02:23AM (#25342777)
A lot of posters here seem to have been deeply burned from microservices designed along the wrong lines. I mean, sure, it happens. You're going to make mistakes just like you can misjudge how to separate concerns in a set of classes. It shouldn't be an issue to fix it.

Maybe some teams focus on pure separation before they have a solid design? Maybe its just a culture of feeling like service boundaries can never change?

I don't really get it either.

Re:If All You Have Is a Database, Everything Looks Like a Nail by etripe on Tuesday December 08, 2020 @03:51AM (#25343231)
I think what we're seeing here is Conway's law in action. Most places I've worked don't define their bounded contexts based on separation of concerns, but rather on separation of reporting.

That is: team A has been given arbitrary stewardship of generic app functions T, U, V based on management purview. Team B has been given stewardship of generic functions W, X, Y, Z. So the bounded context is along those lines. But wait, both V and W are related to billing, you say? No matter!

Since the cliché is you can't solve people problems with technology, the same applies to micro-services: it's much harder to convince managers to shift accountability than it is to move the code from one micro-service to another. Even if you do move the code, you get to have your shit and eat it, too.

Re:If All You Have Is a Database, Everything Looks Like a Nail by rualca on Tuesday December 08, 2020 @08:38AM (#25344820)
> I think what we're seeing here is Conway's law in action. Most places I've worked don't define their bounded contexts based on separation of concerns, but rather on separation of reporting.

You're not wrong. I mean, one of the goals of microservices is to peel off responsibilities to a service that can be owned and managed by a small team.

However, what I've been seeing in these anti-microservices rant is developers struggling to acknowledge the need to reason with loosely coupled interfaces, reason about partial system failure modes that were always there in monoliths but we're either ignored or turned into critical system failures, and the microservices tax.

Re:If All You Have Is a Database, Everything Looks Like a Nail by Glyptodon on Tuesday December 08, 2020 @05:25PM (#25352281)
I think some of the problems I've encountered are related to teams trying to do microservices before each service can actually have a small team.
Re:If All You Have Is a Database, Everything Looks Like a Nail by Glyptodon on Tuesday December 08, 2020 @05:20PM (#25352219)
That pretty much sounds like my workplace in action.