5 ms·
Solving the Three Stooges Problem
- dcminter 5y agoIt's a discussion of their solution to the Thundering Herd problem. They reference this but don't give any reason for giving it a new name.
- toxik 5y agoHasn’t this problem been well understood for a long time? I recall ten, fifteen years ago, our reverse caching proxy would let us serve stale requests for a given location while exactly one actual request got through. Isn’t what they describe more or less that?
- danudey 5y agoBased on what I've seen on mobile, Reddit's engineering talent is not highly skilled or top-notch. Probably the last company I would take engineering advice from.
- tamaharbor 5y ago“Who are these Stooges you speak of?”
- wayeq 5y agoAnd yet.. Reddit seems slower than ever
- danudey 5y agoIn their defense (?) their mobile app is generally pretty responsive when it works; it's mostly just the website that's wildly, unfathomably laggy, unresponsive, and difficult to use.
- throw0101a 5y ago> The Three Stooges were a slapstick comedy trio (if you’re under 40, ask your parents). Meta: it used to be that any society used to have fairly consistent cultural references that could be rely upon for analogies and such. Seems with either (a) a larger population, and/or (b) a rising tide of more sub-niches and fracturing in entertainment (music, TV, movies, etc), it's getting harder to a common base to draw upon.
- petercooper 5y agoYou're right. My parents used to witter on about all sorts of old fashioned things that I've remembered and refer to (e.g. Monty Python quotes) simply because my parents and The Simpsons were almost all I had as cultural guides. I know who the Three Stooges are entirely because of a reference a doctor makes in The Simpsons! https://www.youtube.com/watch?v=gmBj8r1-fDo https://www.youtube.com/watch?v=gmBj8r1-fDo Nowadays, the Internet offers thousands of entertainment choices in every sub genre with a million memes generated every minute and modern audiences like that, so until The Three Stooges turn up in a popular GIF or TikTok...
- barneygale 5y agoCulture went through a brief period of heavy homogenisation while terrestrial television was a big thing. The Three Stooges never aired in my country, but I still got the reference. It's still homogenised, and with the advent of the commercial internet, subcultures are exposed to reactionary backlash before they have time to properly develop and establish themselves.
- syoc 5y agoI completely agree. I fear that the lack of a common cultural ground will make society even more individualistic, antagonistic and enforce the existing tribe mentality even further. It is also something I don't see getting any better. There are a lot more divisive trends right know than uniting in my opinion.
- barneygale 5y agoCulture has been hyper-local since forever, and you'll never remove that instinct. It's a success story for humanity, not a problem to address. The issue we face today is that it's profitable to provide free online arenas where tribes can do battle.
- bitboop 5y agoWould it be feasible to do some "intelligent" TTL updates? By which I mean, don't let the cached data expire automatically. Instead, query a service that informs it of any outage on the backend. If an outage exists, the TTL is renewed. Otherwise, the TTL is expired. For the `F5` spammers, they would be served with the stale data, until the backend recovers from the outage. I'm sure I've missed some obvious reason why this isn't a good idea. I'd love to know why.
- thehappypm 5y agoI think the problem is the service that feeds the cache durations is something that can itself have an outage, which itself could trigger a cache stampede. Usually to solve these kinds of problems you want less new blocks in the block diagram, not more.
- cestith 5y agoIf you don't mind serving stale content, you can do exactly the opposite. Instead of a relatively short TTL that gets extended for failure one can set an infinite TTL and actively eject data that's been updated. In either case, having a separate service handle checking the query and timing out the cache content that is neither part of the frontend nor backend is another thing that can break but can be a fairly simple, isolated thing that doesn't break consistently along with either the frontend or backend.
- thehappypm 5y agoThis seems reasonable for a read-heavy system (like Reddit). In a failure, the content on the site would just get staler and staler, but there wouldn't be a heavy outage.
- jtsiskin 5y agoThis is like the “fail open vs fail closed” question. It depends on what is worse. For legal reasons, they might need the ability to say “yes, we can guarantee we will be no longer serving this content within 1 hour”.
- cbm-vic-20 5y agoFrom the title, I wasn't sure if this wasn't a different resource management problem. "Take off your hat" "Raise your right hand." "Place your left hand here." https://youtu.be/sxAk3B_zS5k?t=12 https://youtu.be/sxAk3B_zS5k?t=12
- psyc 5y agoI have little experience with server development. Why should it ever be the case that no requests are served? Why doesn't first come, first served apply (to some degree)? Is it assumed that every request to a web server will get its own thread, or what?
- bick_nyers 5y agoYeah I'm wondering why a properly sized thread pool backed up with a queue system wouldn't work here.
- jtsiskin 5y agoWhy acquire the lock first, then check the cache? Instead of check the cache first, and only acquire lock on cache miss? Seems like a lot of unnecessary locking