Lurker News
Back to discussion

Comment by simonw

simonw2 replies#
Since the work all happens in your browser, the only victim of a long complicated query would be you own browse and the S3 bandwidth bill of the person hosting the database (since you'd end up sucking down a lot of data).

But if you want to jack up someone's S3 bandwidth bill there are already easier ways to do it!

floatingatoll1 reply#
It's a static file, CDN it.
simlevesque4 replies#
Many CDNs cannot cache 43GB files.

Cloudflare's limit is 10GB, 20GB for Cloudfront, 150GB for Akamai and Azure.

phiresky1 reply#
You can chunk the file into e.g. 2MB chunks. The CDN can then cache all or the most commonly used ones. That's what I did in the original blog post to be able to host it on GitHub Pages.

Continue this thread — 1 reply

sltkr2 replies#
It should be trivial to split it up into 1GB chunks or whatever. In fact, if you only request single pages, you could split the database up into pagesize-sized files. This is a lot of files, but at least it avoids the need to do range requests at all. You probably want to increase the pagesize a bit though (e.g. maybe 256 KiB instead of the default 4 KiB?)

Continue this thread — 2 replies

floatingatoll#
TIL, for whatever it's worth :) Thanks!
jlg231 reply#
If I get the essence of what you are saying... "the only victims would be both ends of the communication"? ;)
quickthrower2#
What is said is this site isn’t any more susceptible to DOS than any other site. Of all the ways of architecting a site this is probably the least vulnerable.