Live data from Hacker News

Microservices are hard

code-held.com

21–30 of 356 posts

Re: Microservices are hard

#22

Don’t you find it weird that everybody else is either over or underengineering, but you , you engineer things exactly the right amount? I bet when you’re driving, you also tend to notice that everyone else is either an idiot driving way too slow in the middle lane or a maniac speeding past you. Nobody else drives as well as you do. It must be exhausting for these people to live in a world surrounded by strawmen, whil…

Wow. Is there a way to favorite a comment on HN, because this is so spot on.

I've worked on _a lot_ of different applications, and all of them have their ups and downs. Knowing when to implement a micro service, and when not to, depends on experience and knowledge of the application(s) at hand.

Same goes for _everything else_ in the software world. How many of us hasn't used something wrongly in our dev-life time?

Re: Microservices are hard

#23

Microservices - let’s replace as many interfaces as possible with the slowest, flakiest, most complex mechanism - the network layer. Why call a function when you can wrap that function in an entire application and call it via API? Why have a single database when we can silo our data across 200 mini databases? Why have a single repo when we can have 200 tiny repos?

Scalability and stability. You need to process more requests? Launch more virtual machines, easy. Your microservice is a shit and it crashes every second? Don't care, it will be relaunched automatically.

We learned in the 90s to not distribute the objects and instead just spin up more copied of the whole application. And if only scalability is the point this is still valid.

Re: Microservices are hard

#24

Earlier quoted context omitted.

Scalability and stability. You need to process more requests? Launch more virtual machines, easy. Your microservice is a shit and it crashes every second? Don't care, it will be relaunched automatically.

Monoliths can also scale horizontally and be restarted automatically when they fail. No need for microservices for that.

> Monoliths can also scale horizontally

At a (potentially much) bigger cost.

Re: Microservices are hard

#25

Earlier quoted context omitted.

Scalability and stability. You need to process more requests? Launch more virtual machines, easy. Your microservice is a shit and it crashes every second? Don't care, it will be relaunched automatically.

Monoliths can also scale horizontally and be restarted automatically when they fail. No need for microservices for that.

Having worked in both, I'll never work on a true monolith again.

Re: Microservices are hard

#26

Microservices is a team organization technique, whereby disparate teams only communicate by well defined APIs. Any technology choices that come out of that are merely the result of Conway's Law. Any time you lean on code in a random GitHub repository, where you never speak to the author and just use the API you're given, you're doing microservices. This works well enough so long as the product does what you need of i…

> Any time you lean on code in a random GitHub repository, where you never speak to the author and just use the API you're given, you're doing microservices.

So a library is a microservice now?

Re: Microservices are hard

#27
I'm always sceptical on big claims for or against specific architectural and infrastructural choices.

Micro-services makes sense in specific cases and doesn't in some other, the same as monolith is an absolute no-go in some cases but a really good fit for some others.

The correct choice is always the simplest for what you need, the tricky bit is understanding what you actually need. The right choice might be a complex solution because your needs require some complexity.

Going for micro-services just for the sake of it, without the need for it is a bad choice, but it doesn't mean that micro-services are bad.

Re: Microservices are hard

#28

Don’t you find it weird that everybody else is either over or underengineering, but you , you engineer things exactly the right amount? I bet when you’re driving, you also tend to notice that everyone else is either an idiot driving way too slow in the middle lane or a maniac speeding past you. Nobody else drives as well as you do. It must be exhausting for these people to live in a world surrounded by strawmen, whil…

Wow. Is there a way to favorite a comment on HN, because this is so spot on. I've worked on _a lot_ of different applications, and all of them have their ups and downs. Knowing when to implement a micro service, and when not to, depends on experience and knowledge of the application(s) at hand. Same goes for _everything else_ in the software world. How many of us hasn't used something wrongly in our dev-life time?

Click on the comment time stamp then click “favourite” in the comment header.

Re: Microservices are hard

#29

Don’t you find it weird that everybody else is either over or underengineering, but you , you engineer things exactly the right amount? I bet when you’re driving, you also tend to notice that everyone else is either an idiot driving way too slow in the middle lane or a maniac speeding past you. Nobody else drives as well as you do. It must be exhausting for these people to live in a world surrounded by strawmen, whil…

Wow. Is there a way to favorite a comment on HN, because this is so spot on. I've worked on _a lot_ of different applications, and all of them have their ups and downs. Knowing when to implement a micro service, and when not to, depends on experience and knowledge of the application(s) at hand. Same goes for _everything else_ in the software world. How many of us hasn't used something wrongly in our dev-life time?

[deleted]

Re: Microservices are hard

#30

Don’t you find it weird that everybody else is either over or underengineering, but you , you engineer things exactly the right amount? I bet when you’re driving, you also tend to notice that everyone else is either an idiot driving way too slow in the middle lane or a maniac speeding past you. Nobody else drives as well as you do. It must be exhausting for these people to live in a world surrounded by strawmen, whil…

Nailed it. This kind of post belongs to a genre where "micro" is tautologically defined to mean "too small". The rest of the post follows logically and could have been written by an automaton.
Post reply on HN