5

Size is relative: Microservices Edition

 3 years ago
source link: https://georgestocker.com/2021/06/11/size-is-relative-microservices-edition/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Size is relative: Microservices Edition

​One of the go-to wars around microservices is how small they should be (I have beef with this beef, but that’s another topic for another day).

Some people say they should be no bigger than the code that fits on your screen.

Some people say they should be no bigger than what’s necessary to encompass their reason for existing.

Some people say they should encompass a ‘bounded context’

Some people say you should be able to rewrite a microservice as quickly as you could find and fix a bug in it.

They’re all right, and they’re all wrong.

How big or how small ​a service ​should be​ is relative to your comfort level.

If your monolith is 1MM lines of code, anything 10,000 lines or less is going to be small.

If your monolith is small (50,00 lines of code), then 10,000 lines of code isn’t very ‘micro’.

If you have five people on your team, having 10,000 lines of code per service (with 5 services) seems reasonable.

If you have fifty-five people on your team, then 10,000 lines of code services (5 services) gives you a lot of collaboration points and a higher potential for merge conflicts.

Micro is relative.  How you size your services, depends on a lot of context that ‘some people’ don’t have.  Don’t worry about how others size their services, do what makes sense for your context, your business, and your team.

And because I can’t resist, here’s an image of all the sci-fi ships sized, relative to one another

Enjoyed what you've read?

Sign up below to get these writings as they're published. Lessons and experiences on scaling your tech and your team in your inbox, daily.

I won't send you spam. Unsubscribe at any time. These emails are tailored to B2B SaaS that want to grow their tech (and their team!) from 5 to 50, keeping up with demand without burning out their team.

9ed3482ccbb461fbf8796b251caf8f4d?s=49&d=identicon&r=gAuthor geostockPosted on June 11, 2021June 11, 2021Categories Scale Your Tech, Uncategorized


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK