Hi Awesome devs
What are you all recommendations for high traffic static website to minimize costs and maximize security ?
What services do you recommend ? tips ? trick ?
(tech is html , css and pure JS , no Wordpress), upload a file do something to the file via JS and will return it back to the user
S3+Cloudfront on AWS also very simple and cheap for a static site.
Try Cloudflare Pages... it's free... Fast... Secure...
Yep, Cloudflare Pages is a good fit for this use case
DigitalOcean and their CDN service i.e Spaces..
Here’s a comparison page I found helpful https://jace.pro/post/2020-12-17-cloudflare-pages-netlify-zeit-github-pages-and-gitlab-pages-where-to-host/
I'd go with a static website generator like Ghost or Hugo and use either AWS or Digital Ocean.
Cheap and reliable.
Whatever you do, do not choose Netlify!! Their bandwidth cost is insane. It’s $20 for the first Terabyte, and then $550 for every terabyte after that.
We have a high traffic site, about 500k users every month. We assumed Netlify would work with us on pricing, and bandwidth but they refused. It cost us over $1,500 in bandwidth each month. We’re trying to move to Azure right now, and should be less than $100 each month.
Our website, WOTLK, offers leveling services for WoW Classic WOTLK. Buy WOTLK Powerleveling from https://wotlk.gold/powerleveling
Since it is a static site i would go for cloudflare pages. Costs zero and can scale to infinity (im sure there is some theoretical limit but unless you are google you probably wont reach it).
5€ cloud instance in Hetzner and 5€ cloudflare. This is more than enough considering your stack.
i’m just worried about storage scaling (horizontally), what users are doing with the files?! are you supporting object storage?
I have to think about how to implement it to be cost effective.(limit user per minutes(or seconds)). it is like getting a file , change the format and return the new file to the user. I am getting one kind of file and return anki format flash card. I do not need to say anyone in the database but I need a way to save some file for doing process on them.Local storage maybe? I think it maybe possible? what do you think?
Yeah, as far as I understood, you'll process the file on user input and you really use it for this short term ops.
In my opinion a VPN and Cloudflare are enough, however as soon as you need to scale horizontally, a load balancer is required in order to make sure the users will land and operate on a specific server and leverage on local storage.
Any recommendation on good load balance ?
It depends where you'll host.
We've had good experience with AWS and Hetzner products, while OVH was a kind of disaster. We do also use HWProxy as LB for mail and webmails and it is pretty good.
OVH or Hetzner, which I use to build my image CDN.
Can I see your website if you don't mind ? thx
Qpchat, I just finished developing the website and I'm launching it.
Combined with AWS route53 self-built CDN is not complicated, you have a high traffic website, you can consider self-built CDN, but the cost is high, another advantage is that you can use a different domain name. OVH or Hetzner servers are also more stable, there are multiple regions to choose from OVH, includes US East, US West, Europe, Asia, Oceania. Hetzner is limited to Germany, Finland and US East.
My service support custom domain name for images and files, so building my own CDN is the best choice.
There's a bunch of these services, and most of them are geared toward specifically static file hosting:
I think the only thing of note is that while Netlify and Vercel both have free tiers (in fact, they all do), Vercels prohibits "commercial" use whereas Netlify allows for it. It might be worth considering if you go down that route.
Render could be a great choice. Thank you for pointing out difference between Netlify and Vercel.
I'll highly recommend Hetzner
Have you heard about Github pages?
It is not suitable for high traffic. I use GitHub page for my personal website.
May I know how high your traffic is?
From Zero to wordle kinda traffic
you can use cloudflare. What kind of traffic are you expecting?
Zero to wordle kind of traffic. I don`t need to prepare for Zero part though, haha
thats like less than 1 request/sec as per https://www.semrush.com/website/wordle.com/overview/
any small vm should be able to handle it. Just watch out for bandwidth.
Next.js site, Headless CMS (shameless plug - BCMS) and Cloudflare :) Free, fast and super secure infrastructure.
i also want to know the answer of this questions about my site https://fescobill.pk/ which is at begging of his big static
This comment was deleted 3 years ago
Is there a way (tool )to check for DDOSing in static website ? You point out great point which I need to consider it too.
This comment was deleted 3 years ago