News for hackers. Stuff that matters.
Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @12:55AM (#29819984)
$20 a month for a Static site? that feels like a first world problem. I feel like everything is over engineered, unless you need subsecond delivery of your assets which are very huge, cdn doesn’t even makes sense. For a blog whats the point, your site is not going to receive heavy traffic every hour from global locations everyday. If you are concerned about returning users cache your assets on their machine. If your site is video heavy I can understand. I run a Django site for a zoo on a $10 instance, I have 2 others running on same instance. Never had issue with page speed even on 2G or under load my instance didn’t suffer. My storage on s3 is proxied via Nginx and cached on user device and in Nginx, I never even had a downtime due to traffic. I use fail2ban for basic protection. If it comes to DDOS im behind cloudflare free tier. $20 per month for a blog? Lol.
Re:We handle 80TB and 5M page views a month for under $400 by throw14082020 on Thursday January 06, 2022 @01:07AM (#29820057)
You missed the point, it's "pay $20 real quick to Cloudflare if you happen to get popular". There is a generous free tier, and for years I have paid nothing to Cloudflare, but I serve 2GB total every month to visitors, YMMV.
Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @01:21AM (#29820117)
No I didn’t miss the point, $20 is weeks worth of meal in majority of countries. People from those countries run successful blogs without paying a penny to cloudlfare. I serve much more than 2GB per month without all that on a dynamic site. Paying cloudlfare for that is like putting a tarp over a dumpster fire to quickly hide it. I would rather think why my static site fails like shit when it doesn’t even need server side processing and correct it. I’m not saying cloudflare/CDN is useless, it shines when you are serving huge assets every hour to lot of people globally, or want to secure from bot traffic, or other useful features it provides. Heck you could even host a static site on s3 or netlify for free and answer all the traffic in the world. Remember Google returned subsecond results much before cloudflare or global CDNs were in place.
Re:We handle 80TB and 5M page views a month for under $400 by ivanhoe on Thursday January 06, 2022 @06:06AM (#29822085)
One variable you miss is the price of your own time.

To pay USD $20 and unload a problem to some 3rd party service takes under 30min, while running a scalable, high performance web-server on low budget is hard and time consuming - even impossible for devs with no sufficient devops/admin skills, which is sadly a majority.

Back in the day, as a student with no money and a time to spare I used to do it all myself too, guerrilla style. Nowadays tinkering with my private servers would mean taking time from my real job, and that just doesn't make sense financially, my time is way more valuable and scarce now.

That's why we have the economy of specialists in the first place. One can do everything in DIY fashion, but in our civilization it's usually cheaper to hire a plumber's or carpenter's services than to invest in learning the skills, buying the tools and then doing it, if it's not your primary source of income. It's no different with CDN services.

Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @06:14AM (#29822156)
I never spent any other time other than the initial deployment. Like I said if your tap is leaking find a competent plumber or if you have the skill fix the leak, don’t pay for water tanker every time you are out of water. Im not sure why you need high performance, scalable multisharded and other big cloud tech to run a static site. Im not against using cloudlfare, there is a usecase for it. I cant stress more about why cloudflare is such an overkill for static sites. A cheap VPS can go a long way before you have to start worrying about not being able to serve traffic for a static site, its not a blocking call. We would be wasting unnecessary resources, if we don’t fix the actual problem.
Re:We handle 80TB and 5M page views a month for under $400 by innocenat on Thursday January 06, 2022 @02:02AM (#29820316)
Then let your site fail, it's your choice.

For the rest of us who would rather not let our site fail, a quick one time $20 tarp over dumpster to handle the traffic in the meantime is good.

Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @03:52AM (#29820993)
My site never failed thats the thing without paying $20. And many developers can actually do it too. If you can’t serve decent traffic for a static site, I would rather fix the leaking tap once and for all than wasting money on a water tanker every time I am out of water.
Re:We handle 80TB and 5M page views a month for under $400 by innocenat on Thursday January 06, 2022 @06:39AM (#29822351)
And I am not saying you have to pay $20 every time. It's there to handle the traffic while you identify and fix the problem.

It's your choice if you don't want redundancy in place if any incidents happened.

Re:We handle 80TB and 5M page views a month for under $400 by collinmanderson on Friday January 07, 2022 @10:57PM (#29848492)
What does the $20 buy vs free plan? During a spike I was able to handle 30k pageviews per hour with Cloudflare free plan + $40 vps. Pretty much all pageviews were cached by Cloudflare and didn't hit my server. How does the $20 plan help?
Re:We handle 80TB and 5M page views a month for under $400 by elaveriao on Thursday January 06, 2022 @03:02AM (#29820681)
I invite you to do the calculations of serving 80tb of data serving from S3. Over 6k was my result but happy to be proved wrong.
Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @03:48AM (#29820972)
What are you serving on a static site/ blog worth 80TB? I also said CDN makes sense for huge files. Please don’t nitpick.
Re:We handle 80TB and 5M page views a month for under $400 by Aeolun on Thursday January 06, 2022 @07:20AM (#29822641)
4 kg of feathers is the same weight as 4 kg of lead.

Same thing applies to millions of 10kb files. Whether or not files are large is irrelevant to whether a CDN is a good idea.

If every file only ever gets requested once it may be pointless.

Re:We handle 80TB and 5M page views a month for under $400 by anaganisk on Thursday January 06, 2022 @07:27AM (#29822714)
Makes sense, thats what I mean too. There is a use case for CDNs which do no make sense to pay for if its a static site. Which can be done much cheaper and for free most of the time. Unless you are running a google scale static site.
Re:We handle 80TB and 5M page views a month for under $400 by Aeolun on Thursday January 06, 2022 @07:17AM (#29822623)
Interpreting ‘weeks’ as 2 weeks, the GDP necessary to call that weeks worth of meals is $520 dollars. There’s only like 6 countries with a GDP that low.

If you are only talking about food, it may stretch a bit further, but you’re still far away from the majority of countries.