Today I Learned - Rocky Kev

TIL Microservice vs Monolith

POSTED ON:

TAGS:

I've been debating over the past few months how to approach a big project at work.

The major consideration is if I go Microservice, or if I go Monolith.

What are Microservices?

Microservices are pieces of software (often just isolated functions) that do a single, tiny, independent part of a bigger application. If your application were a big company, each employee would be a microservice, each playing their own specific and small role, working alongside but independently from their coworkers. This lets you make changes to individual microservices without affecting the rest of the application. In a big company replacing or retasking one employee in a large team would probably not affect the rest of the company all that much.

via [API vs. Microservices: A Beginners Guide to Understand]
(https://snipcart.com/blog/microservices-vs-api)

The benefits:

As for monoliths:

Not much needs to be said that wasn't covered above.

The end result

Microservices exist to scale developers. Only when you face issues from too many devs working on the same repo are microservices a viable option. Until then, until you hit those problems you should use a monolith. ref

I landed on this as my answer.

You can do way more damage setting up a microservice architecture incorrectly in the long run than a really bad monolith.


Related TILs

Tagged:

TIL Microservice vs Monolith

Final Verdict: You can do way more damage setting up a microservice architecture incorrectly in the long run than a really bad monolith.

TIL the difference in the JS Event Loop for Browsers and Node

It took me years to understand this. Someone saying that 'they use Javascript' could mean they use Javascript on the web, or Node, or a different Javascript environment, of which there are MANY!

TIL the difference in the JS Event Loop for Browsers and Node

It took me years to understand this. Someone saying that 'they use Javascript' could mean they use Javascript on the web, or Node, or a different Javascript environment, of which there are MANY!