3 ms·
Nice article. > Caches work great for CSS files, images and javascript - stuff that doesn't chance for each user. It doesn't work as well for the responses to
by superzamp 6y ago
Nice article.
> Caches work great for CSS files, images and javascript - stuff that doesn't chance for each user. It doesn't work as well for the responses to API calls, for which the responses are different for each user, and sometimes, each time
Regarding this, there seems to be some people addressing the issue now (I have fly.io in mind, and maybe Vercel but I believe the latter use lambdas behind the hood so probably less effective).
- NDizzle 6y agoThere's always Varnish.
- Nextgrid 6y agoUltimately there has to be a source of truth somewhere, and geographically scaling a DB is difficult (CAP theorem and all that). Running your code at the edge doesn't help much if it still has to talk to a database far away to actually produce a response.