by rdiddly · 4y ago · 0 comments
Musk is embarrassing as always but he's right about one thing - engineers are costly, and for years now, the problem with Twitter as a business has been the huge outlay for engineering talent. And for what? No effect I can discern; the platform is clearly not a force for good in the world, first of all, but even looking at it strictly as a product, the product in fact gets worse every year and they're constantly discontinuing functionalities. So the whole "what has your code accomplished" show, it's inept but I know where it's coming from.
* Apply security patches - there's thousands of dependencies.
* Manage hardware/cloud resources according to volume of data you need to handle.
* React to the changes in operating systems/browsers you run on.
* Fix bugs - they are there, because simply there's not enough time, money, and need to write "perfect" software. Competition will not do that and will beat you to the market.
There's no internet connected software, that can "just run", because world around is changing and you must catch up.
Fells a bit weird to explain that on HN :-|
I don't work at Twitter but these things happen at every business.
We'll see what happens now, when there seems to be a drought.
On one hand I totally get your arguments, it's what I would expect my engineering team to say and they are often right.
On the other hand I am watching this space utterly intrigued if somehow he manages to pull it off.
If he does it might say more about the engineering team left than him though.
Twitter's raison d'être is allowing folks with millions of follows to see their posts in near real time, then monetize it with ads. That means analytics, billing, and more. From pretty basic requirements you can create a huge amount of work, especially when you're managing your own infrastructure.
I'm reminded of when, out of sheer curiosity, I once skimmed the proof for Fermat's last theorem by Andrew Willes. It was a monstrous work of which I could understand very little, but that clearly couldn't have been made by a team of a hundred mathematicians working together.
Security patches... so 10 full-time engineers ought to take care of that?
"Thousands of dependencies" was a mistake. The ideal is minimal complexity.
Any browser or OS decides to commit a breaking change (rare), you bring in contractors.
Scaling up and down (and out and in) is handled for you automatically by cloud services now without anyone lifting a finger. "Fells" weird to be explaining that on HN.
Bottom line, you don't need thousands of engineers to keep Twitter running for "the next few days to week or two (at most)."
When has the world NOT been changing? The leadership of Twitter changed also.
the lack of autoscaling at twitter, imo, is worrisome as it sort of hints that the system might not be as mature in the self-healing department as compared to other large tech companies. time will tell.
you are right though, you don't need thousand of engineers to keep twitter running a few weeks. you also don't need a driver for a car driving a straight highway (until it bends). how many engineers are needed for maintenance? who knows. I don't think we have answers, we just have what elon decided.
disclaimer: facts based on twitter threads/online reading, not a twitter employee or anyone with first-hand inside knowledge.
Other things which aren't necessarily needed to technically keep the code running, but without which you won't have an operating service:
* Sales and account management teams to keep and grow advertiser revenue, and all the support services around them (marketing, integration, etc)
* Moderation teams to keep illegal or dangerous content off the platform, and implement your moderation policy which you need for many reasons including appeal to advertisers
* Abuse teams to respond to the latest DoS / hacking / impersonation / harrassment / etc.
* Legal and ops teams to understand and implement compliance with laws, regulatory filings, etc across 150+ countries, and in some countries like the US, individual state variations.
You tell me how many people you can do this with at the scale of Twitter. I think > 1000 people are a skeleton staff just to keep the lights on.
The rights I appear to lose were taken away from me by a society.
I actually don't ever forget that.
"We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness."
https://www.archives.gov/founding-docs/declaration-transcrip...
Or, alternatively:
"All human beings are born free and equal in dignity and rights." (from Article 1)
https://www.un.org/en/about-us/universal-declaration-of-huma...
There is also just frankly more traffic to serve because of mobile devices, so more things break at scale.
Kindof true. Platforms need a ton of maintenance - but usually the fires needing to be put out are because of other human changes.
Stuff like disk space, certificate expiration etc etc will bring down a platform without maintenance though.
That’s a bit like asking “why does any large internet service need infrastructure maintenance?”
If you can’t immediately see the answer in twitter’s case, then you either haven’t yet applied your knowledge of how large cloud services function and need maintenance to keep from cascading failures, or you don’t have that knowledge in which case the twitter case can’t be answered without explaining first the general case of how any large software system needs regular oversight. But then, I think that even if you can’t think of an answer for Twitter, you can probably figure out a little of the answer for the general question.
You can start with asking yourself another question: why would Twitter (or any very large software project) pay $Millions for maintenance that isn’t required? Is there collective delusion on the topic? Or has twitter hit upon the absolute perfectly engineered platform ever? If the answer to either of those is “no” then a twitter system failure is only a matter of time.
How much time is a matter of some debate. The first time something hits a quota or something of that sort that requires a human input to ensure automatic allocations don’t accidentally get insane could be a pebble. Or maybe the first pebble is a minor unpatched security flaw, but twitter is a very sweet high profile target… whatever the first pebble is, it makes a slightly worse issue or multiple additional pebbles much easier, and you enter cascading failure. They generally happen slowly relative to the proportion of a total collapse, and then very very quickly.
So another question to ask is how much of twitter’s infra teams were pure bloat, how much were excess capacity necessary to cover average amounts of employee vacation/sick/leave that goes on at any time, etc, and how elastic the remaining staff can be (putting in extra hours, working in areas that are secondary skills because no one else is available) and for how long they’re willing to do it before burnout or better job offers with less stress and overtime, whether staff losses have already hit a critical mass to make this inevitable…
But I think this gives a general sense of why it can’t tick over forever on its own, or at least some inroads into thinking about the answer.
the fact aside that bug-free "just a bunch of software" of the size that serves half a billion people has yet to be invented. All software has the nasty habit of running on hardware and real infrastructure and that at the very least needs some serious maintenance.
If your standard for proper engineering is that it runs without human intervention at all I can't think of any complex system in the world that fits that description.
Twitter is a top-5 near realtime web property. It has an enormous attack surface across nearly the entire spectrum of cybersecurity threats. It's hosted at least in part on prem. Swathes of it are programmed in Scala, which is a minority language that is hard to hire for. It makes money through ads, which involves significant operational complexity at scale. Its recommendations and trending features are built on machine learning models which themselves require data engineering pipelines to deliver continuous updates. It's been in continuous development for 16 years, with an accumulation of accidental complexity (aka tech debt) in addition to the ever-expanding essential complexity inherent in its functionality.
Those of us who have taken an oncall shift in the world's most complex distributed systems environments are just shaking our heads at some of the drivel in these comments.
A few examples:
- security holes discovered in the OS requires an emergency update, which requires lots of testing because updating the OS has a bad tendency of breaking even stable software (I've encountered that issue a few weeks ago);
- security holes discovered in third-party libraries/frameworks/..., which requires updating, re-testing, re-releasing stuff – and fixing whatever breaks because of undocumented changes in said library/framework/...;
- security holes discovered in your own code, of course, which also requires updating, reviewing, re-testing, re-releasing;
- monitoring your stack for misbehaviour, which could indicate a software problem (bug? license expired? SSL key expired?), a hardware problem, a resource problem (disk full?), an attack, or in the case of Twitter, one of your clients (the companies that build ads) misusing your tools and attacking you by accident;
- ... and once the misbehavior is detected, actually investigating and fixing the issue.
Sure, you can hop along for a while without anybody to handle these cases. But how long? Keeping in mind that Twitter is a high-value target for state-sponsored attackers (among others) all over the world, so any weakness will be probed and exploited mercilessly.
If Twitter is failing that easily, these engineers deserve to be laid off
Do you have additional information about that you can share (maybe an announcement regarding this made by AWS)?
[1]: https://perspectives.mvdirona.com/2021/11/xen-on-nitro-aws-n...
I would encourage you to read about “site reliability engineers” and the work that they do, in case you haven’t heard of them.
I can write software that runs today. I don't know about tomorrow. Disks crash, other services crash, networks go down. No matter how competent your Byzantine Generals are, sometimes you have to recover data that was in-flight during a crash because disks and networks don't just crash, they slow down and they lose packets and sectors.
Add on security patches and changes in architecture (I'm looking at some Java 1.3 code that runs INSIDE an Oracle DB right now, ask me how I feel about not updating your architecture). You may say that architecture doesn't change that fast. If the business is successful, it will happen eventually.
Sometimes you have automatic recovery. Sometimes you don't.
For instance this is why there needs to be a multi tiered (culminating with HN front page exposure) process for fixing automated account cancellations and app store rejections.