News for hackers. Stuff that matters.
Re:Native Rust Support on Cloudflare Workers by eminence32 on Thursday September 09, 2021 @09:42AM (#28469576)
This looks neat, but I've never had a good use-case for cloudflare workers. Are any of you doing fun things with workers?
Re:Native Rust Support on Cloudflare Workers by jgrahamc on Thursday September 09, 2021 @10:37AM (#28470167)
Quotes 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.

Re:Native Rust Support on Cloudflare Workers by pathseeker on Thursday September 09, 2021 @11:34AM (#28470823)
>hyper programmable middleware to stitch together multiple vendor solutions

well if that doesn't stir excitement I don't know what does!

Re:Native Rust Support on Cloudflare Workers by junon on Thursday September 09, 2021 @09:46AM (#28469613)
I 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.

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

[2] https://github.com/cloudflare/kv-asset-handler

Re:Native Rust Support on Cloudflare Workers by ec109685 on Thursday September 09, 2021 @10:10AM (#28469879)
Is that loose cache based on the KV propagation delay?
Re:Native Rust Support on Cloudflare Workers by junon on Thursday September 09, 2021 @10:37AM (#28470162)
I would imagine so, yeah. Hard to say definitively.
Re:Native Rust Support on Cloudflare Workers by Joe8Bit on Thursday September 09, 2021 @10:20AM (#28469972)
I'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.

Re:Native Rust Support on Cloudflare Workers by pdimitar on Thursday September 09, 2021 @10:27AM (#28470042)
I'd love a blog post about how you did it!
Re:Native Rust Support on Cloudflare Workers by Joe8Bit on Monday September 13, 2021 @11:50AM (#28513015)
There's a little bit at the bottom of this[0] blog post, expanding it a little as we speak though!

[0]: https://dev.to/joe8bit/shipping-web-components-in-2020-2h54

Re:Native Rust Support on Cloudflare Workers by jgrahamc on Thursday September 09, 2021 @09:48AM (#28469646)
Re:Native Rust Support on Cloudflare Workers by vlovich123 on Thursday September 09, 2021 @10:40AM (#28470199)
Don't forget the multiplayer Doom ported to run on Durable Objects + WASM [1]!

[1] https://blog.cloudflare.com/doom-multiplayer-workers/

Re:Native Rust Support on Cloudflare Workers by jgrahamc on Thursday September 09, 2021 @10:49AM (#28470320)
Re:Native Rust Support on Cloudflare Workers by eli on Thursday September 09, 2021 @10:01AM (#28469774)
I 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.
Re:Native Rust Support on Cloudflare Workers by asadlionpk on Thursday September 09, 2021 @11:10AM (#28470540)
I made a websocket game server with cloudflare workers and durable objects.
Re:Native Rust Support on Cloudflare Workers by manigandham on Thursday September 09, 2021 @10:10AM (#28469869)
Built major parts of our adtech platform on it before, will build the next one completely with Workers.
Re:Native Rust Support on Cloudflare Workers by anderspitman on Thursday September 09, 2021 @01:39PM (#28472389)
I've thought it would be fun to try and implement something like patchbay[0] on workers.

[0]: https://patchbay.pub/

Re:Native Rust Support on Cloudflare Workers by F117-DK on Thursday September 09, 2021 @10:42AM (#28470224)
I've made a website builder based on KV and Workers, and it has been quite brilliant - especially because of the global geo.
Re:Native Rust Support on Cloudflare Workers by throwaway77384 on Thursday September 09, 2021 @01:01PM (#28471880)
Did 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?

Re:Native Rust Support on Cloudflare Workers by csomar on Friday September 10, 2021 @01:44PM (#28484879)
Link?
Re:Native Rust Support on Cloudflare Workers by NicoJuicy on Thursday September 09, 2021 @12:02PM (#28471183)
I just mentioned it above and then saw your comment, but here is an example cf app:

https://github.com/eidam/cf-workers-status-page

A status page pinging from multiple regions.

Re:Native Rust Support on Cloudflare Workers by csomar on Friday September 10, 2021 @01:37PM (#28484807)
https://crates.live runs on Cloudflare workers (and yep, using Rust)
Re:Native Rust Support on Cloudflare Workers by nilslice on Monday September 13, 2021 @07:07PM (#28518077)
Very cool! I will definitely use this.