Re:Native Rust Support on Cloudflare Workers
by WORMS_EAT_WORMS on Thursday September 09, 2021 @10:56AM
(#28470387)
Same except I go POST and version the assets. It's a super fun and awesome way to manage sites IMO.
The idea is what Worker Sites [1] do via KV Asset Handler [2].
Would love to see your code for signed Payload / auth. Or, just hear how you do it. My auth is a bit... weak.
Cheers.
[1] https://developers.cloudflare.com/workers/platform/sites
All GETs result in a KV lookup. A PUT uses a signed payload and a set of public keys in another KV store to check that the caller is allowed to store the new page contents.
I can re-deploy a site in a matter of milliseconds and it is only loosely cached (updates are reflected within a minute or so), free for up to 100k requests a month, and serves content in a matter of milliseconds.