News for hackers. Stuff that matters.
Re:Ask HN: How do you scale your service worldwide in 2021? by sylvain_kerkour on Saturday April 24, 2021 @10:27AM (#26925052)
Hi, I faced this situation after a Show HN (https://news.ycombinator.com/item?id=20105567), all I had to do is simply to add a CDN (Cloudflare or AWS Cloudfront) in front of the servers in order to serve the static assets and pages from the CDN, and the API requests by the servers.

If you are not familiar with CDNs yet, learn how works the Cache-Control HTTP header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ca...) so you can send a different header for API responses than for static assets responses. Then learn how to purge the CDN after each release.

I would recommend to start with Cloudflare as it's cheaper, and easier to use.

A CDN with correct Cache-Control headers and Heroku Autoscaling should bring you very far in term of traffic you can handle.

Re:Ask HN: How do you scale your service worldwide in 2021? by adithyasrin on Saturday April 24, 2021 @01:45PM (#26926792)
This does help a decent bit but not for dynamic content. I'm facing the same issue with my job board [1]. I'm trying to do this without using anything like AWS; mostly because I haven't used it and seems it's a bit complicated for pricing.

I would cache most of the common database queries, then monitor which is pulling down your system. A load balancer usually does the trick.

[1] - https://arbeitnow.com