Managing High Bandwidth Consumption in Web Hosting and Cloud Storage

When using a web hosting service like Netlify or Vercel, it's advised to store files in cloud storage solutions such as Azure Blob or Amazon S3 to mitigate bandwidth surges and control costs during an attack or excessive file requests. However, this concern extends to cloud-hosted files as well. Attackers can target these files with repeated requests. Are there effective solutions to this problem? Or are the associated costs with cloud storage so minimal that this issue is rarely a concern?
4 Replies
Neto
Neto2mo ago
the big thing is the file size not the file itself a js bundle is some kbs and can be easily cacheable with response headers now large files like images, videos or photos, are way more tricky they easily can rack up a big bill before being flagged as "bad accessess" neither vercel nor netlify are CDNs like s3 + cloudfront
Walde
Walde2mo ago
yea, but someone could also repeatedly download my s3 files and rack up the bill that way. Are there any protections against that or are the costs just so insignificant that this rarley/never does happen.
Neto
Neto2mo ago
Both you and the provider should handle that Always search what each one of them do
JulieCezar
JulieCezar2mo ago
Depending on your usecase and/or provider you could: - allow files only to be viewed through your website - make files private - require access-token whenever you view a file - most providers have some type of DDoS protection (although you will probably have to pay) - rate limit it yourself None of these are perfect, but they can at least help
Want results from more Discord servers?
Add your server
More Posts
please help me on convincing my manager to choose react native over flutter:)Hi, so the current application is Windows app written with VisualBasic and it is ERP/MRP(material renext js production problem with authI’ve just deployed my app to vercel and when you enter it redirects instantly to auth which does notHow to interact with typescript language server programetically?I am trying to build an app for user searching queries through language server. Maybe later on that Help with dynamic image in Nuxt!does anyone know to import dynamic assets because ```<img :src="`/_nuxt/assets/images/${item.imageHow would you define 'Confidence' in testing? (Unit / Integration / E2E / Whatever)As titled. Most people claim that the purpose of testing is to maintain / improve 'confidence'. But.Has anyone here tried nuqs?Short for next-usequerystate: https://nuqs.47ng.com Seems like a pretty awesome/promising way to inHelp responding to coworkers on my technical decisions (NextJS)I feel like I'm at a point where I'm writing great quality software by blind-following best practiceGet loading state from server action without using `useFormStatus` or `useFormState`I like doing mutations with server actions because I don't have to write API routes and they remove Server Side Exception on Vercel DeploymentI'm getting the following error on vercel deployment using tRPC on Next.js And this is the server l404 Not Found when rendering <UploadButton>When I render `<UploadButton>` I get the error `GET http://localhost:3000/uploadthing 404 (Not Found