5 ms·
This looks neat, but I've never had a good use-case for cloudflare workers. Are any of you doing fun things with workers?
by eminence32 5y ago
This looks neat, but I've never had a good use-case for cloudflare workers. Are any of you doing fun things with workers?
- junon 5y agoI host static content with them (with no fallback server) using their keyval stores. 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.
- ec109685 5y agoIs that loose cache based on the KV propagation delay?
- junon 5y agoI would imagine so, yeah. Hard to say definitively.
- WORMS_EAT_WORMS 5y agoSame 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 https://developers.cloudflare.com/workers/platform/sites [2] https://github.com/cloudflare/kv-asset-handler https://github.com/cloudflare/kv-asset-handler
- jgrahamc 5y agoBuilt with Workers: https://workers.cloudflare.com/built-with https://workers.cloudflare.com/built-with
- vlovich123 5y agoDon't forget the multiplayer Doom ported to run on Durable Objects + WASM [1]! [1] https://blog.cloudflare.com/doom-multiplayer-workers/ https://blog.cloudflare.com/doom-multiplayer-workers/
- jgrahamc 5y agoOr even https://nataornot.com/ https://nataornot.com/
- eli 5y agoI have a somewhat unusual use case that Workers are perfect for: I want to collect analytics on a SaaS service that is a CNAME under my domain, but that I do not control.
- manigandham 5y agoBuilt major parts of our adtech platform on it before, will build the next one completely with Workers.
- Joe8Bit 5y agoI've used them for serving development or debug builds of JS SDKS (e.g. you set a DEBUG=TRUE cookie in the request in production, serve bundle A if not serve bundle B). Made the lives of our Solutions Engineers a LOT easier. Being able to do this in the CDN infra was pretty powerful.
- jgrahamc 5y agoQuotes from the Cloudflare Q2 earnings call transcript: We see more and more customers building applications around Cloudflare workers our compute platform. A high-profile new economy delivery company signed a $1.3 million three-year deal. They use a number of our products, but increasingly are building their application using Workers in order to get fast scalable performance. They appreciate the flexibility it provides, as they literally deliver for their geographically distributed customer base. A financial services software provider signed a three-year $3.3 million deal for a number of our products. They're using Workers as a hyper programmable middleware to stitch together multiple vendor solutions. They love how easy it is for developers on their team to get up and running on the platform, because of the broad programming language support and rich developer tools that have been honed and battle tested in production since Workers launched nearly four years ago. An Asian fintech provider expanded their use of Cloudflare by $0.5 million, making their annual spend now $1.3 million. They are using Workers to accelerate their development cycle and replace spend with some of the traditional hyperscale compute providers. So, more than 50,000 developers wrote their first Workers script or code this time [this quarter]. And that's not signed up for an account. That's actually wrote code and deployed an application. We're increasingly seeing startups that are building entire applications from scratch on the Workers platform.
- pathseeker 5y ago>hyper programmable middleware to stitch together multiple vendor solutions well if that doesn't stir excitement I don't know what does!
- F117-DK 5y agoI've made a website builder based on KV and Workers, and it has been quite brilliant - especially because of the global geo.
- throwaway77384 5y agoDid you ever run into a scenario where you had to replace a single file specifically? I have found that to be quite tricky. There is some data for a site I'd like to be able to update dynamically, without redeploying the whole site (as that may contain draft pages / content). How do you handle this scenario?
- asadlionpk 5y agoI made a websocket game server with cloudflare workers and durable objects.
- NicoJuicy 5y agoI just mentioned it above and then saw your comment, but here is an example cf app: https://github.com/eidam/cf-workers-status-page https://github.com/eidam/cf-workers-status-page A status page pinging from multiple regions.
- anderspitman 5y agoI've thought it would be fun to try and implement something like patchbay[0] on workers. [0]: https://patchbay.pub/ https://patchbay.pub/
- csomar 5y agohttps://crates.live https://crates.live runs on Cloudflare workers (and yep, using Rust)
- nilslice 5y agoVery cool! I will definitely use this.