5 ms·
Definitely the traffic. Wasn't expecting the front page. Working on it now.
by techindex 7y ago
Definitely the traffic. Wasn't expecting the front page. Working on it now.
- MiroF 7y agoIs the site self-hosted?
- jannes 7y agoThat's not what people use the term "self-hosted" for. It doesn't really apply to websites that you created yourself. It rather applies to off-the-shelf software that you use as an alternative to SaaS offerings.
- ricardbejarano 7y agoPerhaps we need a new term or two to distinguish between "services I provide through providers" and "services I provide with my own metal" (except ISP and power, 'cause I run my services but I'm not buying a power plant). At the moment people, myself included, use "self-host" for both.
- ricardbejarano 7y agoI know a lot of people here don't like Cloudflare, but they provide a solution to the "HN hug of death" mentioned above for free. Whenever you expect to get a traffic spike, you can always turn proxying on for a day or two and turn it off afterwards.
- jagged-chisel 7y agoDoes the HN crowd not like Cloudflare? If that's the case, why not?
- esotericn 7y agoThey terminate TLS for you.
- notduncansmith 7y agoThey can, although they support end-to-end encryption as well.
- big_chungus 7y agoMost of the "HN crowd" like cloudflare a lot, as it's quite convenient, especially for personal projects. There are a few very vocal people who dislike it for all kinds of reasons: taking down too much, not taking down enough, centralization, etc.
- ricardbejarano 7y ago> There are a few very vocal people who dislike it for all kinds of reasons [...] I'll have to agree, there are few but very vocal.
- jlg23 7y agoPrivacy. Cloudfare-users hand a lot of their clients' data to a third party.
- prophesi 7y agoI'd highly recommend Solr[0] for searching to cut down the load. Or, if this is a static site, you could use Lunr[1] to have an efficient search that runs on the client. Is this site OSS? [0] https://lucene.apache.org/solr/ https://lucene.apache.org/solr/ [1] https://lunrjs.com/ https://lunrjs.com/
- techindex 7y agoThank you. I will check out Solr. I'm using Elasticsearch currently for the readmes, but I disabled it while troubleshooting so it's currently just searching on titles and descriptions via mysql. I will re-enable elasticsearch later and figure out how to better optimize it for future traffic.
- prophesi 7y agoAh, then there's no need to check out Solr! They both use the same backend search engine called Lucene.