4 ms·
Is this a monthly bandwidth limit issue or an Apache on slow servers issue? How much traffic is required to be considered slashdotted these days when running a
by RandomInteger4 10y ago
Is this a monthly bandwidth limit issue or an Apache on slow servers issue?
How much traffic is required to be considered slashdotted these days when running a simple blog?
Tangenting away from the OP, but curious because I'm getting into setting up and running my own web server for the first time, and while I don't expect to be slashdotted, it's something I'd like to prepare for.
- kbar13 10y agouse static html with a cdn or something like s3. it's probably cheaper, has basically no operational overhead, you don't really have to worry about being overwhelmed by traffic.
- enneff 10y agoNone of that is even necessary for text-based content if you just use an efficient web server (that's most of them, today) and static content. If you have a lot of large media files (not the case here) it's another story.
- kbar13 10y agoyeah but using a hosted service gives you the freedom of not spending time running a webserver
- byuu 10y agoUnfortunately, it's just bad design that's very typical of the 'modern web' these days. My site didn't even top 5% of its resources when it was on the front page of HN, Reddit, Kotaku, Destructoid, Eurogamer, The Informer, Slashdot, etc all at the same time. (Well okay, Slashdot four days later.) You don't need Node, Ruby on Rails, PHP, Apache, PostgreSQL, Wordpress, etc to serve up a simple text blog that you post on once a week. If you put all of that on a $5/mo VPS, it's not going to handle any kind of serious load. We're mostly all developers here. It's not even a weekend project to set up a simple blog from scratch. Host your site on nginx, don't include a bunch of massive Javascript libraries, serve your content statically or without using a dynamic scripting language, and you'll be fine.
- e12e 10y agoAnd, if you want to have a "dynamic" site, you're likely to be ok by just shoving varnish[1] in front of it. I guess if your comment system is based around a php-script that does 10 separate round-trips to your database per comment shown/posted along with cache-busting, comments might break, though. One thing I'm not certain of - I recall there was a significant overhead to running a site on SSL vs plain HTTP (mostly due to key negotiation - the initial session setup). That overhead is still there (even if running something with http2 support, like caddy[2] should help a bit). What I'm not sure about, is how much CPU time a typical $5/mo VPS has compared to the dedicated webserver I managed to run into the ground due to a miscommunication that led to a https-link being sent to media outlets rather than the http-link (the server wasn't really specced to do https). This was around 2005 though, and the server was already a bit long in the tooth. [1] https://www.varnish-cache.org/ https://www.varnish-cache.org/ [2] https://caddyserver.com/ https://caddyserver.com/
- byuu 10y agoSomething that caches dynamic responses will certainly work as well. Usually those are situations where you want content changed on every reload, though. My site is actually dynamic as well, but it's just C code that concatenates three files together, and does just a tiny amount of metrics at the end. I'm not going to say my design is maximally efficient, because it definitely isn't. It's just that 'modern' dev creates sites that are orders of magnitude more expensive to construct pages with. That stuff works for major corporations with data centers. It doesn't work so much when you're one of 256 instances on a single blade server inside a single data center hosting 20,000+ servers. Also, when it comes to HTTPS, my site also uses that. HTTP redirects to HTTPS, and the TLS used is very strong 256-bit ECC. The biggest cost to crypto is definitely for people living overseas from the server location. The added round-trip inherent in TLS v1.2 and below slows things down for international visitors. But ... I kind of lost it when my own ISP started injecting falsified HTTP responses to redirect me to their "maintenance notifications." I don't have the luxury of switching ISPs, so instead I'm moving everything possible to HTTPS.