News for hackers. Stuff that matters.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by musicale on Tuesday April 06, 2021 @08:30PM (#26719094)
Even more than the efficiency penalties, it's the drastic increase in complexity that makes me want to stay far, far away from microservice architectures.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by yaml-ops-guy on Tuesday April 06, 2021 @11:49PM (#26720401)
Am I doing myself a disservice by actively avoiding shops that want to go down the k8s road?

Asking in interviews questions like “how many namespaces are you managing or expecting to manage” and often times teams are talking about a single microservice and bringing in k8s “just in case”

To which I’ve oft said “good luck in your endeavors”

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by jjav on Wednesday April 07, 2021 @03:55AM (#26721646)
> Am I doing myself a disservice by actively avoiding shops that want to go down the k8s road?

From the resume-driven-development angle, probably. I do the same though.

If you prefer to work in a sane environment though, wise choice.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by goodoldneon on Tuesday April 06, 2021 @11:58PM (#26720446)
K8s solves a specific set of problems that mid- to large-sized companies face. If the company is big enough to have multiple K8s experts then it can be successful
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by nostrebored on Wednesday April 07, 2021 @03:02AM (#26721312)
Well designed microservices drastically reduce complexity and mental overhead of working with a system.

The problem is companies with poorly designed monoliths hit complexity problems more quickly and often. If software architecture is not a core competency, solutions architecture is probably not either, and poorly designed microservices are a completely different beast. A distributed monolith is inherently more difficult to maintain and operate.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by jjav on Wednesday April 07, 2021 @03:53AM (#26721621)
> microservices drastically reduce complexity and mental overhead of working with a system

If you only need to understand and maintain one of them, sure.

That would be extremely rare though. You have to understand the entire system and all the interaction between all the parts. At which point the 10x complexity of excessive microservices will kill you.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by KptMarchewa on Wednesday April 07, 2021 @06:43AM (#26722953)
>You have to understand the entire system and all the interaction between all the parts.

Maybe if you're CTO. Never seen that in case of individual contributors.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by throwanem on Wednesday April 07, 2021 @07:41AM (#26723385)
I've been that IC. You can easily find cases where a feature implementation involves a vertical slice of the whole stack, just like you would in a monorepo. Do that enough times with enough different features and you end up touching most things. If you don't have organizational blockers to velocity, and you treat every task as a chance to learn something new about the architecture (as you should!), you don't need all that long to develop a sense of what's where and how the pieces fit together.

You're not likely ever going to be at the same level of detail on everything all at once, and there can still be fuzzy parts - third party partners in particular can be difficult, especially if the org is not good at making known who's the SME for what - but you absolutely can build an understanding of the architecture as a whole, and that makes you able to dive in and work on just about anything without needing much spinup time.

(Granted this assumes good technical and architectural leadership early on that has specified standards for interservice communication, intraservice code design, what layers exist and how they interoperate, etc. That said, Wild West microservices might still be less painful to work on than a Wild West monolith - I don't actually know, but I could come up with arguments either way.)

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by nostrebored on Wednesday April 07, 2021 @08:58AM (#26724199)
Putting on my business hat, the shift to microservices needs to happen top down and involves organizational structure as well. Each service should have a clear team which owns it and a single threaded owner for the team.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by emodendroket on Wednesday April 07, 2021 @07:44AM (#26723417)
Depends where you are. That’s not going to happen at Big N size environments.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by throwanem on Wednesday April 07, 2021 @07:49AM (#26723460)
In such environments, I wouldn't expect it to be particularly useful or necessary, either - it's not a good use of effort to deeply understand foo-service if I can just ask somebody on the Foo team, or read their schema and docs, and get what I need much faster that way.

I'm thinking more from the perspective of a small team supporting a large operation, because those are the kinds of situations where I've spent a lot of my career. FAANG scale would be a novel experience for me, as I suspect it would for most.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by emodendroket on Wednesday April 07, 2021 @08:00AM (#26723576)
In that scenario I’d be a lot more hesitant to do true “microservices” because IME it’s a good way to complicate interactions and development without achieving much.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by throwanem on Wednesday April 07, 2021 @08:17AM (#26723725)
That's fair. In the specific case I have in mind, load was very bursty and scaling was a major concern; we were always looking to minimize both latency impact on revenue and infra cost impact on profit. Having the critical path live in its own heavily optimized services made demand scaling very easy and very fast; I don't think we could have done as well with less separation, and once you've already got the necessary infra and practices in place, it becomes very natural to apply them to the other problems you have to solve.

Not to say you can't get in trouble that way, for sure. It's its own kind of tradeoff, not least in that you need more ops support than a simpler infrastructure would require, and you need someone with the architectural vision and authority to ensure things don't get out of hand. It's definitely not where I'd want to start with anything, and you need a strong team to make it work, but I can say from experience that it can work amazingly well. Like, about twenty people supporting about $2B ARR well.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by emodendroket on Wednesday April 07, 2021 @10:42AM (#26725631)
The truth is that even for very large companies there's always push and pull between service separation and ops burden. If you're thinking about it you're already in a better place than many.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by jjav on Wednesday April 07, 2021 @06:34PM (#26732372)
Any higher than senior engineer better understand the whole ecosystem at a reasonably sized company.

(Sure if you're google sized, nobody will understand or even know the entire system. But nearly every company on earth is smaller than that.)

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by bildung on Wednesday April 07, 2021 @03:50AM (#26721599)
But why would the same people that poorly designed the monolith be able to design the intrinsically more complex microservice architecture better?
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by spaetzleesser on Wednesday April 07, 2021 @08:55AM (#26724156)
My simple rule is: if you can’t write a decent library you won’t be able to write a well designed microservice. Microservices have all the challenges of library design plus quite a few more.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by mkoubaa on Wednesday April 07, 2021 @04:04AM (#26721708)
+1

We have to keep in mind that not all software systems are designed by savants, and even ones that are might be constrained by business needs from rearchitecting them when they need it

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by nostrebored on Wednesday April 07, 2021 @07:24AM (#26723262)
That's what I was trying to articulate in the end.

Microservices are generally less complex.They can appear more complicated because companies who are choosing to transition usually do so after a problem. These problems are often due to poor monolith design.

Teams that design poor monoliths typically have neither a software or solutions architecture proficiency

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by mathgladiator on Wednesday April 07, 2021 @12:59AM (#26720767)
k8s sits on a list of things that I hope to avoid long enough before I can retire.
Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by kbenson on Wednesday April 07, 2021 @03:25AM (#26721445)
I felt largely the same way, but now our company has enough microservices that without something like k8s it's hard to actually sufficiently test anything well. Sure, we have test setups for any one service, and tests for that service with some other services mocked, but there's really no way to spin up a real full dev or QA environment with all the services interacting without herculean effort, and keeping it up to date would be non-trivial.

I still haven't done anything with k8s, but I suspect it's the solution to this problem, even if it would take that same herculean effort to finally get everything moved to using it (we don't even run containers, we run our own application delivery system that has some similarities without the process isolation, because we've been doing so since before Docker existed).

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by jjav on Wednesday April 07, 2021 @03:57AM (#26721663)
> I felt largely the same way, but now our company has enough microservices that without something like k8s it's hard to actually sufficiently test anything well.

That feels like a self-inflicted wound that will now only get worse with k8s.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by kbenson on Wednesday April 07, 2021 @08:39PM (#26733615)
> That feels like a self-inflicted wound

What's the alternative? It's not like we're some web property with an application, it's an ISP, and we sell internet services, and we've been around long enough that we still offer traditional ISP services (many for free) such as email, hosting, VPN service, etc, as well as telecom services. These often need to communicate with each other in some way, as well as many back-end services we've written to serve our staff.

Microservices come with problems, but honestly I can't see a large monolithic app (or even a few of them) being much better development wise, even if it might have been easier to test and set up a development environment.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by jeltz on Wednesday April 07, 2021 @07:13AM (#26723188)
As someone who has also tried to avoid it but now failed: it is not all bad, but it is immature, opionated in weird ways and make some normally simple problems very hard. The advantages is that it in return makes some hard problems trivial.

So far I would not say it is worth it for most people. I also hate how much the community just runs random shit from the internet without any strategy for security patches or digital signatures.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by nikau on Friday April 09, 2021 @06:44AM (#26748836)
Hey no worries just pay for yet another product to analyse your images!

Fixing up the docker images will give you some variety outside deciphering cut and paste garbage cryptic mess in helm charts.

Re:An Apology to COBOL: Maybe Old Technology Isn’t the Real ... by gonzo41 on Tuesday April 06, 2021 @10:51PM (#26720067)
Like all legacy tech. Wrap it in a box of tests don't touch it and just manage the risk down over 20 years. Just like migrating away from a mainframe.