3
Nmeri17
3d

Those modular monolith treatises, articles and videos presenting it as the less complex cousin of microservices with same benefits, I think it was all snake oil. They sold us dreams

Yes, it's more compact to house all components pertaining to an entity under one package. But it turns out all the hoops we jumped to hide them behind an interface, it's an overkill not necessarily the game Changer it was made out to be

I say this because one controller almost suffices for managing a resource. So does its associated service class. It can grow to 1k/1.5k lines at best. But never enough to be managed by multiple people and balloon into "a service". The idea was that these things are big enough to gain full attention. But the chances are slim

As long as you aren't dumping all your logic into your controllers, you're home and dry

Comments
  • 3
    The microservices had exactly the issues that I thought it would have. I did make a few, but not in large scale thank God. I also recently watched a video about it and I was like DUHHHH. (horizontal) scaling is shit in general (here they come...). The big boys just have massive backends. I prefer to make my software speedy directly preventing having to scale. But now, people start with scaling and overhead at the beginning. I need 8gb of ram to install sentry what before was just a pip install and postgres. I wanted statistics for molodetz, also required 8gb ram. You're tools fuckers, why do you think you're worth that much? Ended up building stats site myself. It's not complex or smth.. My bot on website is the frontend for the stats, I will make it create graphs.
  • 1
    There's a strong correlation between people announcing that they're going to use such-and-such architecture because they've read a book about it, and the finished product being a dog.
  • 2
    @donkulator oh, I did read a book about it btw 😁 It was about making a very cool build system called runnerly. Making own build system is one of the cooler projects I ever had from a book.

    https://subscription.packtpub.com/b...

    Packtpub are always great books you ACTUALLY read for cheap prices, around 30 for paper version.
Add Comment