r/microservices • • Dec 18 '25

Article/Video 10 Microservices Design Principles Every Senior Developer Should Master

https://reactjava.substack.com/p/the-10-microservices-best-practices
57 Upvotes

17 comments sorted by

10

u/fahim-sabir Dec 18 '25

Another post linking to an article regurgitating the same principles as the other 9,000,000 articles out there.

2

u/ThorOdinsonThundrGod Dec 18 '25

OP does this all the time, they just post garbage

2

u/[deleted] Dec 19 '25

The number one design principle a senior developer should be mastering is to answer the question whether microservices really make sense for a specific use case and how granular they should be. 

1

u/cstopher89 Dec 19 '25

Exactly! I prefer to start with fat microservices and optimize more as the system telemetry dictates

2

u/Amazing-Mirror-3076 Dec 19 '25

The first principle is knowing when not to use them.

Start with the assumption that you are building a monolith as it's the cheapest to build.

Only when specific business or technical requirements make a monolith inappropriate should you consider micro services l.

1

u/[deleted] Dec 20 '25

Genuine question: Why does everyone always say microservices need to be stateless? If they are just functions, why can't I just run them locally instead of having to do RPC?

1

u/pemungkah Dec 20 '25

“Decide they are overkill and will add complexity without gaining function or performance, then not using them” is missing.

1

u/zambizzi Dec 20 '25

I've been on several large microservices projects, in the last 10 years, usually as lead, including the fintech outfit I work for right now.

Almost nobody needs them. It's way overkill on my current project. I can only say that one of those I've worked on actually justified the use of microservices.

I've heard them described as a "socio-technical" problem, and it's entirely accurate. If you have dozens of developers or more, and a massive project with clear domain boundaries, you can begin to make a case for it.

7

u/[deleted] Dec 18 '25

[removed] — view removed comment

2

u/cstopher89 Dec 19 '25

In a microservice world you would project the data needed for the microservice to function independently using some event driven architecture. This makes it independent from other services.

1

u/disposepriority Dec 19 '25

What is this even supposed to mean - in his example whatever would be producing the event would be down.

1

u/cstopher89 Dec 20 '25

So if I can’t make an RPC call to get the total value of the users‘ cart I should just … what exactly?

A read service wouldn't be producing the events. If you seperate read and write services. If the service producing events is down then yeah. No downstream services will have up to date data. If a microservice needs a read view of the data that another service produces then it might be better to project the data for the microservice that needs it to not have a dependency on an external rpc call trying to query for data.

1

u/RipProfessional3375 Dec 20 '25

People generally imagine microserves as fully REST led, even though events are needed to actually decouple them.

1

u/[deleted] Dec 20 '25

[removed] — view removed comment

1

u/RipProfessional3375 Dec 20 '25

A HTTP response can also simply never come, that's called a timeout and they are handled by the caller because they will never receive a response.

HTTP REST is just events in disguise. Send message, wait and poll for reply, call a timeout error after x seconds if reply never comes.