News for hackers. Stuff that matters.
Re:Microservices Considered Harmful (2019) by amelius on Sunday June 07, 2020 @03:24PM (#23449968)
> They force you to not share memory on a single system, they encourage you to focus on how you communicate, they give you scale and failure isolation, for force you to handle the fact that a called subroutine might fail because it's across a network.

The problem: distributed systems are hard to get right. Better stay away from them unless you really need them, AND you have the time/resources to implement them correctly. The benefits of microservices are a bad excuse, most of the time.

Re:Microservices Considered Harmful (2019) by anyfoo on Sunday June 07, 2020 @07:58PM (#23452199)
Exactly, distributed systems are hard. Very hard. It's an entire field of study.

Don't opt for something very, very hard unless you have to.

Re:Microservices Considered Harmful (2019) by tonyarkles on Sunday June 07, 2020 @09:55PM (#23452837)
Heh, I have a masters degree focused on distributed systems. My thesis was about tracing and debugging in microservice-style systems. I generally write monoliths, on purpose. The massive overheads and debugging nightmares are not worth it most of the time.

Global state still gets pushed out into backend services (redis, postgres) and I can still scale horizontally all day, but there’s no crazy chain of backend interservice HTTP requests to cause no end of chaos :)

Re:Microservices Considered Harmful (2019) by harpratap on Monday June 08, 2020 @01:06AM (#23453726)
Do you mind if you can link me to your thesis? I am actually looking into tracing systems right now.
Re:Microservices Considered Harmful (2019) by tonyarkles on Monday June 08, 2020 @10:03AM (#23456543)
Honestly, you're probably better off looking at https://opentracing.io/. For a bit of context, I started working on my thesis in 2009 when there weren't many commercial tools available for doing this kind of tracing; by time I was done, there were a ton of open source and commercial tools available.

Thesis is here: https://harvest.usask.ca/handle/10388/ETD-2015-06-2185