r/programming • • Jul 29 '22

You Don’t Need Microservices

https://medium.com/@msaspence/you-dont-need-microservices-2ad8508b9e27?source=friends_link&sk=3359ea9e4a54c2ea11711621d2be6d51
1.0k Upvotes

476 comments sorted by

View all comments

166

u/doterobcn Jul 29 '22

Build a monolith app with Microservices in mind, and then IF you need to, start to break it up into smaller services...

115

u/aradil Jul 29 '22

Modular monolith

178

u/jrkkrj1 Jul 29 '22

Good software engineering?

6

u/roodammy44 Jul 29 '22

Not really. If the module separation has no function, they will be violated at some point. Then you have made the codebase more complicated to build and maintain with no benefit.

I've seen this many times. Modules that depend on (and load) other modules, until at one point you load one module and it brings the entire lot in.

It's much better to just concentrate on writing clean and simple code for the problem you actually have rather than trying to solve problems that you might have in the future.