News for hackers. Stuff that matters.
Re:How big should a microservice be? (2013) by dreyfan on Wednesday July 07, 2021 @11:55PM (#27768305)
Avoid microservices entirely and you won't adopt 50 unnecessary cloud services and external SaaS platforms to help you manage those 50 services. If each business unit/domain has their own "monolith" it serves the same goals without the hype and complexity.
Re:How big should a microservice be? (2013) by est on Thursday July 08, 2021 @02:28AM (#27768963)
My theory is if you can't organize local-procedure-calls properly, then don't bother do remote-procedure-calls entirely.
Re:How big should a microservice be? (2013) by pantulis on Thursday July 08, 2021 @06:02AM (#27770063)
This reasoning is absolutely spot on.
Re:How big should a microservice be? (2013) by BenoitP on Thursday July 08, 2021 @12:47AM (#27768563)
But then 10 years down the line you'll be scrambling to implement Master Data Management, where you'll try (unsuccessfully) to merge user profiles and data.

I'm very anti-microservices, and rather than implement them for organizational reasons (read: teams unable to work together), I think that the most important business objects need to be maintained at a single point. Managing user identity at a single point is a valid reasons for microservices; like Google does with gmail/search/drive/storage/cloud services/youtube/android/etc.

Re:How big should a microservice be? (2013) by fn1 on Thursday July 08, 2021 @03:09AM (#27769120)
> where you'll try (unsuccessfully) to merge user profiles and data.

Why? Can't a monolith be refactored?

Re:How big should a microservice be? (2013) by BenoitP on Thursday July 08, 2021 @12:11PM (#27773941)
I was talking about each silo of data; which is orthogonal to each monolith's code being refactorable.

> If each business unit/domain has their own "monolith"

This furiously looks like accidental microserviced data; which is kind of ironic considering the original comment was about "Avoid microservices entirely".

And yes, important business objects managed by different microservices are a PITA to merge; basically you're going to ask the users themselves to merge profiles, and they'll answer "we're divorced now" / "I like it better having multiple accounts, I get more promo codes" / "Why should I?" / "I don't care" / "Who are you?".

Re:How big should a microservice be? (2013) by fouc on Thursday July 08, 2021 @03:10AM (#27769122)
Is that a microservice though? That sounds more like a proper service.
Re:How big should a microservice be? (2013) by adrianN on Thursday July 08, 2021 @03:11AM (#27769124)
Write microservices, but link them in one binary and do normal procedure calls. The important part about microservices are the clear interfaces, the lack of global state blobs, and the independent testability, not the 50 cloud services needed to manage containers.
Re:How big should a microservice be? (2013) by konschubert on Thursday July 08, 2021 @05:44AM (#27769942)
One advantage of real microservices is that you get better tooling around rate-limiting HTTP APIs than for simple function calls. And it's much easier to see which services creates the most CPU/Database/Network load.
Re:How big should a microservice be? (2013) by muxator on Thursday July 08, 2021 @08:50AM (#27771262)
In this context, the measuring aspect would be taken care by profiling/instrumenting.
Re:How big should a microservice be? (2013) by dgb23 on Thursday July 08, 2021 @04:10AM (#27769400)
Sounds like modules to me.
Re:How big should a microservice be? (2013) by adrianN on Thursday July 08, 2021 @05:33AM (#27769873)
Modules, but with 100% more hype. Best practices for software engineering haven't changed all that much in the last two decades or so, but the vocabulary keeps changing.
Re:How big should a microservice be? (2013) by RandyRanderson on Thursday July 08, 2021 @12:53AM (#27768589)
I guess this is obvious but for the record: once one company using hot_tech_x gets significant funding, several more do. Then you have a bunch of ppl invested (literally) in hot_tech_x's success. hot_tech_x is then the answer to every problem. clogged sink? microservice.

Maybe a question is: what is today's hot tech?

Do we even care as long as we get paid?

Re:How big should a microservice be? (2013) by dreyfan on Thursday July 08, 2021 @01:06AM (#27768637)
> Maybe a question is: what is today's hot tech?

React, Kubernetes, Docker, GraphQL, Elixir

You're absolutely right. So few companies are solving actual problems anymore. It's all a cyclical bullshit hype cycle with very little innovation. Once the hot tech company IPOs, VC's force feed the next wave of bullshit tech/ideas.

I hope Fowler is getting compensated well by the cloud companies for his misinterpreted advice.

Re:How big should a microservice be? (2013) by throwaway984393 on Thursday July 08, 2021 @03:09AM (#27769117)
I mean, if that's feasible, sure. The problem is there's plenty of businesses that simply can't or won't justify the work to make a couple monoliths. Often there's dozens of microservices because there's dozens of acquisitions that nobody is willing to invest any money in; the microservices are hipster business glue.

If they were run by smart people they'd realize that the cost of maintenance for dozens of new microservices to wrap around a bunch of shitty legacy acquisitions is far more expensive than just refactoring the legacy apps (or tearing out chunks and shoving them in other products, or making brand new products out of one or two features). But try telling some C-level bozos from an industry that knows nothing about tech that.

Re:How big should a microservice be? (2013) by konschubert on Thursday July 08, 2021 @05:41AM (#27769920)
The monoliths you acquire through acquisitions aren't really microservices :)