r/softwarearchitecture • u/hirebirhan • 3d ago
Discussion/Advice [ Removed by moderator ]
[removed] — view removed post
16
Upvotes
r/softwarearchitecture • u/hirebirhan • 3d ago
[removed] — view removed post
•
u/softwarearchitecture-ModTeam 3d ago
Posts that are clearly generated by an AI are not allowed in the community. If you'd like to ask a question or start a discussion, create a separate post that is in your own words (even if English isn't your first language). Thank you for understanding.
31
u/SessionIndependent17 3d ago
in the age of AI, it could have formatted this for actual humans to read.
10
u/ShineProper9881 3d ago
2 weeks to migrate from microservices to a modular monolith? I call bullshit. The database migration alone is pure hell.
18
u/heavy-minium 3d ago
Microservices are very cool when you can have a stable architecture with relatively stable seams. But if what you are doing or your phase of growth doesn't allow for that, they can quickly turn into a useless exercise.
Best to be implemented in a company that is already mature and where you don't constantly redefine boundaries and only ever pile up more functionalities in existing domains.
9
u/Strange_Passenger814 3d ago
Good work on identifying, accepting and correcting your architecture mistake. Microservices are a solution to a growing problem. One never starts with microservices, you grow into it. There is a ton of additional work involved, and that only make sense at a scale.
But the lessons learned should not be modular monoliths are better than microservices or vice versa. When it comes to software engineering, you always have to ask, does it make sense given my constraints and context. There’s no X is always better than Y situation.
4
u/beattyml1 3d ago
In general m greenfield work in an agile environment usually should be a monolith/modular monolith. You only break out service once you fully understand the domain well enough to understand the problem you’re solving thoroughly and generally have good understanding of the roadmap for the next year and are doing architecture and requirements for it in advance. Some services may demand being broken out sooner for scaling reasons but those usually hit you in the face with the need. The other case where you might proactively move to microservices is if the team working on your code base is too large to function as one scrum/pizza sized team and you can assign each team a service this tends to be you forcing the known roadmap and architecture planning before it naturally happens a bit though as even in this scenario you still need to do all the actual planning it’s just the price of being wrong so smaller and the price of not splitting is higher.
3
u/Separate_Panic6805 3d ago
Your story isn't uncommon, and the issue may not be what you thought it was.
I find it interesting that you features that should have been simple required coordination across multiple services. Is it possible that you got your service boundaries wrong? It is the hardest thing to get right when you're building a microservices architecture, and it's a subject that's poorly handled by the literature.
In an ideal world, features are contained within a single microservice, or a couple of services at most. If that isn't the case, then you're always going to find a monolith easier to work with.
This isn't about code stability: optimally drawn services absorb change easily. But achieving that optimal structure is the hard problem with the architecture.
2
u/RedditForW 3d ago
Follow
1
u/Just_Information334 3d ago
Microservices are a solution to people communication problem and office politics. Some times, to legal requirements.
They are not a solution to any technical problem. They only add more of those.
1
u/jah-roole 3d ago
Microservices have a very special place in architecture when multiple stars align just right. In all other cases it is a fucking pain in the ass, expensive or both.
1
u/kkodev 3d ago
What is the purpose of this slop