5 ms·
Impressive. What's your tech stack? How are you able to keep the cost so low?
by nabakin 4y ago
Impressive. What's your tech stack? How are you able to keep the cost so low?
- berkle4455 4y agophp, nginx, mariadb (mysql). The stack that continues to deliver robust, low-cost, and reliable solutions yet HN shits on it at every opportunity.
- bakugo 4y agoAssuming it hasn't changed in the past 2 years: > nginx, latest php, mariadb. > and of less importance: memcached and influxdb. https://twitter.com/thexpaw/status/1315941483867000833 https://twitter.com/thexpaw/status/1315941483867000833
- xPaw 4y agoThat's still correct.
- nabakin 4y agoWhat host do you use?
- xPaw 4y agoHetzner.
- nabakin 4y agoTy
- rexreed 4y agoI'd love to learn how you managed to scale on a single server - other than the above, any tips or tricks? I'm also a PHP guy on Ngnix with MySQL but want to know what tips you might have for a dynamic (non-static) site to handle such scale on a single server
- umen 4y agome also , how can it be 1 server ? how do you protect DDos attacks?
- arejaytee 4y agoThey use cloudflare in front, they do the heavy lifting.
- bakugo 4y agoEquip your server with a decent CPU, enough RAM to allow MySQL to keep most of your database in it, and fast SSDs. Profile your code and optimize/cache anything that stands out as slow, aggressively cache data that is read often using memcached/redis/etc, use an http cache proxy like cloudflare in front to cache static assets (and maybe pages that aren't dynamic for every user)
- nabakin 4y agoThanks!
- pastor_bob 4y agoWhen's the Next.js migration?