4 ms·
"Woah, our database is slowing to a crawl, requests are deadlocked everywhere. Yeah, some asshole is hitting GET /messages and pulling 2TB in a single request a
by hellcow 6y ago
"Woah, our database is slowing to a crawl, requests are deadlocked everywhere. Yeah, some asshole is hitting GET /messages and pulling 2TB in a single request again."
"Surely that's what he wanted."
- callesgg 6y agoGiven that is what the person is doing, that is likly what they are trying to do. Most of the times when I do things, I do it cause I want to do it, not cause I did an opsie.
- scrollaway 6y ago"let's allow users to DOS us in a single request if they want to" is not an acceptable design decision, I'm sure you are aware of that.
- callesgg 6y agoMost services don’t handle ddos amounts of data, a few 1000 rows of data is fine. Don’t design like you are Twitter if you are not. It is a waste of man hours. If I as a client need 10 000 rows of data that is what I will ask for either in one request or in a 100 consecutive.