News for hackers. Stuff that matters.
Re:Preventing server overload: limit requests being processed by puzzle on Monday August 07, 2017 @03:08PM (#14950290)
You also have the issue that you might be dropping new requests, but there's so much backlog that old requests eventually time out in droves, too. You might end up spending a lot of CPU cycles doing partial work on some requests, only to eventually see them hit their deadline.

That's one of the reasons why Facebook has a mechanism that switches their FIFO queues to LIFO, once the server has passed a certain load/latency threshold.

Re:Preventing server overload: limit requests being processed by rrdharan on Monday August 07, 2017 @03:22PM (#14950397)
Thereby inadvertently rewarding people who mash their reload button when the app/site is slow :)
Re:Preventing server overload: limit requests being processed by adrianratnapala on Monday August 07, 2017 @03:57PM (#14950735)
But mashing reload is what users are supposed to do by design of the web.

That is, errors in internetworked systems can happen at a level high enough that machines can't decide if it is sane to retry or not, they should simply bubble the error all the way back to the user and let her press F5 if she wants to.

Modern UIs might hide this, but users well know the web is flaky and understand it in their bones. So when they press reload they are sending important information.

Re:Preventing server overload: limit requests being processed by sofaofthedamned on Monday August 07, 2017 @04:17PM (#14950894)
Which are the ones that generate most load...