MicroservicePremium
martinfowler.com
MicroservicePremium
1–10 of 27 posts
Re: MicroservicePremium
#2Re: MicroservicePremium
#3Maybe it's just hard to write about a new, interesting thing without most people getting the impression you think it's the way (especially developers, who seem eager to declare any new tool the One True Way® and everything else 'legacy').
[1] http://martinfowler.com/articles/microservices.html#AreMicro...
Re: MicroservicePremium
#4Re: MicroservicePremium
#5Does this feel like backtracking to anyone else? Compare to Fowler's previous discussions [1]. Maybe it's just hard to write about a new, interesting thing without most people getting the impression you think it's the way (especially developers, who seem eager to declare any new tool the One True Way® and everything else 'legacy'). [1] http://martinfowler.com/articles/microservices.html#AreMicro...
> So we write this with cautious optimism. So far, we've seen enough about the microservice style to feel that it can be a worthwhile road to tread. We can't say for sure where we'll end up, but one of the challenges of software development is that you can only make decisions based on the imperfect information that you currently have to hand
Re: MicroservicePremium
#6Re: MicroservicePremium
#7Does this feel like backtracking to anyone else? Compare to Fowler's previous discussions [1]. Maybe it's just hard to write about a new, interesting thing without most people getting the impression you think it's the way (especially developers, who seem eager to declare any new tool the One True Way® and everything else 'legacy'). [1] http://martinfowler.com/articles/microservices.html#AreMicro...
No? > So we write this with cautious optimism. So far, we've seen enough about the microservice style to feel that it can be a worthwhile road to tread. We can't say for sure where we'll end up, but one of the challenges of software development is that you can only make decisions based on the imperfect information that you currently have to hand
"We've seen many projects use this style in the last few years, and results so far have been positive, so much so that for many of our colleagues this is becoming the default style for building enterprise applications"
"Monolithic applications can be successful, but increasingly people are feeling frustrations with them "
Re: MicroservicePremium
#8I think the biggest anti-pattern is "DRY". This turns a simple rails view into a monstrosity that is used to render every page of a site, or a class into a self-referencing recursing mind-puzzle.
When a codebase starts down the monolithic path, developers will often use the DRY anti-pattern to "shrink" what is actually complexity creep. They will also use another anti-pattern which is using the test coverage percentage as a key metric for deciding what to build/improve.
Both of these are attempts to fix something that is a far bigger problem: excessive, unnecessary coupling in the core design. This is often because (as others have pointed out) of blind adherence to frameworks and framework "best practices".
In my opinion, the most important metrics are coupling, lines of code (the fewer the better) and readability/understandability. Every line of code that you maintain ads a cost to changing/improving the codebase (because someone has to understand it in order to change it).
If you think of code in terms of its consumers, nearly every API is a micro-service. The less magic/faith required by the consumer to use the API, the more effectively it can be used and changed.
Re: MicroservicePremium
#9http://highscalability.com/blog/2014/4/8/microservices-not-a...
Building Microservices does have a real premium - you are building a complex platform which needs specialists skills and additional work to make happen.
The payback of that premium comes later, in the ability to then iterate and change the system easily and quickly.
The problem comes when people think they are building an application and not a platform which will support them for the next 5+ years. I try to hammer this point home to our clients who are looking at Microservice architectures.
Re: MicroservicePremium
#10What is a monolith? Intentionally tightly coupled code that you feel is going to be manageable in the future? I think the biggest anti-pattern is "DRY". This turns a simple rails view into a monstrosity that is used to render every page of a site, or a class into a self-referencing recursing mind-puzzle. When a codebase starts down the monolithic path, developers will often use the DRY anti-pattern to "shrink" what i…
The monolith is simply the opposite of the microservice ideal, it is heavily coupled in both development and deployment.
And yes, DRY does often run counter to the development isolation, as you need to balance repeating yourself or sharing code (and reducing isolation).
As these things generally go, any system in contact with the real world will exist somewhere between the monolith and a federation of microservices. My current company, for example, employs 2 distinct codebases, Java and JavaScript, which have 3 and 2 deployments respectively, each in two similar-but-not-the-same environments (in-house and white-label). We could easily split those deployments into twice or 5x the number, we could also join them, this just happens to be where things naturally settled for the time being.