Re:Defcon: Meta's system for preventing overload with gracef...
by ndriscoll on Thursday February 29, 2024 @04:54PM
(#39555700)
Facebook makes over 300 requests for me just loading the main logged in page while showing me exactly 1 timeline item. Hovering my mouse over that item makes another 100 requests or so. Scrolling down loads another item at the cost of over 100 requests again. It's impressive in a perverse way just how inefficient they can be while managing to make it still work, and somewhat disturbing that their ads bring in enough money to make them extremely profitable despite it.
[ Parent
| on HN ]
Re:Defcon: Meta's system for preventing overload with gracef...
by akira2501 on Thursday February 29, 2024 @06:50PM
(#39556807)
This is the company that instead of ditching PHP created a full on PHP to C++ transpiler and then deployed their while site on that for a few years.
Re:Defcon: Meta's system for preventing overload with gracef...
by NooneAtAll3 on Thursday February 29, 2024 @11:51PM
(#39558638)
> deployed their while site
??
Re:Defcon: Meta's system for preventing overload with gracef...
by kqr on Friday March 01, 2024 @12:05AM
(#39558705)
Obviously "whole".
Re:Defcon: Meta's system for preventing overload with gracef...
by saagarjha on Friday March 01, 2024 @05:13AM
(#39560371)
That's why it's so inefficient!
Re:Defcon: Meta's system for preventing overload with gracef...
by theptip on Friday March 01, 2024 @10:40AM
(#39562769)
FB still runs on Hack.
Re:Defcon: Meta's system for preventing overload with gracef...
by yodsanklai on Thursday February 29, 2024 @06:43PM
(#39556739)
Could someone tell me what these hundreds of requests could do?
Re:Defcon: Meta's system for preventing overload with gracef...
by ndriscoll on Thursday February 29, 2024 @08:30PM
(#39557451)
A lot of them appear to be that they've split their javascript into a gazillion files for whatever reason (I suppose because they have several MB of it). But someone or lots of people there did seem to get addicted to dynamic loading. Like I've got 100 or so friends, but my friends page loads them 8-16 at a time as I scroll. Just send all 100 and set the profile pictures to deferred fetch. It'd probably be smaller than the js they have to make it do "infinite" scroll.
Similarly, after getting to the bottom of their "infinite" scroll, my friend feed (which is annoyingly hidden away) gives me... 15 items. Just send me all 15. It's like 1-2 kB worth of data. If you're going to end the scroll after a dozen items, why is it using infinite scroll?
Re:Defcon: Meta's system for preventing overload with gracef...
by sd9 on Friday March 01, 2024 @04:49AM
(#39560238)
Could be so they can track what you're looking at on the back end
Re:Defcon: Meta's system for preventing overload with gracef...
by Solvency on Thursday February 29, 2024 @07:20PM
(#39557013)
Track you, probably with a thousand layers of redundancy, tech bloat, and decades of mold.
Re:Defcon: Meta's system for preventing overload with gracef...
by golergka on Thursday February 29, 2024 @05:21PM
(#39556002)
Wasn't the whole point of GraphQL in mitigating this?
Re:Defcon: Meta's system for preventing overload with gracef...
by zer00eyz on Thursday February 29, 2024 @08:47PM
(#39557578)
No.
Here is the thing, hypermedia is cacheable. React/Graphql not so much.
Facebook is now just an application that runs in the browser.
As a poor, small developer who doesn't want to hemorrhage money, I tend to want things to be more hypermedia and less app. It saves on complexity and bandwidth and costs.
Re:Defcon: Meta's system for preventing overload with gracef...
by serial_dev on Thursday February 29, 2024 @07:06PM
(#39556915)
Yeah, that's why you have only 100 requests* when you hover over an item instead of 800.
(* allegedly, didn't verify it myself)
Re:Defcon: Meta's system for preventing overload with gracef...
by callalex on Thursday February 29, 2024 @09:04PM
(#39557692)
Do you have an ad blocker stopping the requests and causing retries?
Re:Defcon: Meta's system for preventing overload with gracef...
by ndriscoll on Thursday February 29, 2024 @09:36PM
(#39557909)
I do have ublock origin on everything of mine, so conceivably it's reacting to that somehow. I'm no longer at my computer to be able to look more closely at what it's doing.
Re:Defcon: Meta's system for preventing overload with gracef...
by chatmasta on Friday March 01, 2024 @09:48PM
(#39569374)
Whenever you're running this kind of eyeball test with DevTools, make sure the "Disable Cache" option is _not_ checked. And even then, make sure the requests you're counting were not served from your browser cache. It's possible that only the first page load sends hundreds of requests, and subsequent loads may still initiate those requests, but have their responses served from your browser cache (or your cache is disabled).
I would check myself, but I haven't logged into Facebook in many years. :)