“[Twitter] is doing 1000 poorly batched RPCs just to render a home timeline”
twitter.com
twitter.com
EDIT:
> As the former tech lead for timelines infrastructure at Twitter, I can confidently say this man has no idea wtf he's talking about
The engineers brought in are in the position where they are expected to trash the existing teams code. And then in the context of a slow page load, they might look at it and see up to 1000 of something in RPC and tell Musk and it comes out in a slightly mixed up way when he tries to repeat it.
The reason the number of calls gets high is (I guess) not from 1000 individual different types of requests, but from pulling many pages or records each of several things.
Anyway it is easy to trash other people's code especially if that's what your boss wants you to do to justify bringing you aboard. I have been the victim of it and also on one or two occasions done the same thing myself to some degree.
Another aspect is that no engineer really wants to maintain someone else's code if they don't have to. They are going to have their own viewpoint on architecture etc. and coming onboard is a prime opportunity to start a rewrite. So slamming the existing architecture is just an easy way to try to get that authorized.
I think it's a bit of an integrity test coming in and talking about someone else's code base. But people are unfortunately creatures of circumstance, and these things can bring out the worst in some as far as fairness goes. But again, even for a fair person it might be easy in that position to scoff at a codebase.
Most people are not particularly high integrity though so will happily take a dump when it comes down to it.
I just refreshed twitter's home page and for me it made 111 http requests (per Chrome's dev tools). That includes static resources like images and style sheets. So only ~10% are made from the browser and the other 90% must be due to microservice architecture on the backend, I suppose?
Because the little I've gleaned is that he insisted on porting PayPal to Microsoft stack, got pushed out, and picked up enough about rocketry to impress Carmack in casual conversation.
"Elon Musk was appointed the Chief Technology Officer..."
He created a web based company as early as 1995. In a three person startup one cannot become a CTO without writing code. So my bet is he understands something about http vs local calls.
Also doesn’t the new fangled http/2 protocols and the like solve this, at least partially?
We’re currently in the process of ripping out a lot of client side opportunistic model hydration in favor of just making multiple requests because it’s faster.
Why can't twitter have 1000?