Hacker News new | ask | show | jobs
by silviogutierrez 1911 days ago
I wonder this too, given ultimately, 99% of non-static sites will need to reach out to a central database. So to render a dynamic page, your worker then has to go to the DB, no?

Curious what is the use case. You can cache stuff, as detailed in the post, but assuming you have huge variance in page contents per user, I can't see too much use. I must be missing something.

2 comments

A lot of applications are read heavy on their database. When this is the case, you can make reads to a read only slave closer to the edge. There are other options, but depending on your applications architecture this might be a relatively easy way to reduce latency on a large portion of your traffic.
Why not use a database with a worker?

https://www.cloudflare.com/products/workers-kv/

Key/value store doesn't really have joins, aggregation, tables, references, etc.