News for hackers. Stuff that matters.
Re:Cloudflare Workers by jgrahamc on Sunday June 02, 2019 @07:17AM (#20074772)
Re:Cloudflare Workers by stingraycharles on Sunday June 02, 2019 @07:24AM (#20074801)
What I always wonder about is how one can write "non-trivial" stuff using CloudFlare workers. Don't get me wrong, I am more than intrigued by the concept, but as far as I understand, it cannot do things like connecting to a database or third party service. That makes the types of problems you can solve with it relatively small.

This is confirmed what I see if I look at the Cloudflare marketplace: it has apps for things such as cookie banners and automated GA integration, but that's not that interesting.

What's the long-term vision for this?

Re:Cloudflare Workers by rita3ko on Sunday June 02, 2019 @07:54AM (#20074915)
I might misunderstand what you mean by third party service, but today you can connect to any service on the Internet (including databases like Firestore) with Workers using fetch() [1].

We're building out our storage products -- we started with Workers KV, our distributed Key-Value store, and will to continue expanding our offering to support more use cases. You won't be able to build everything with Workers right away, but we've seen customers solve really interesting problems with it. As we add functionality to support more and more use cases, we expect Workers to grow into a really powerful platform.

Note that Cloudflare Workers is a different product from Cloudflare Apps (which is what you see on the Marketplace). Cloudflare Apps does allow developers who want to distribute their Worker to other Cloudflare customers to do so, using Apps with Workers.

[1] More on fetch() here: https://workers.cloudflare.com/docs/reference/runtime/apis/f...

Re:Cloudflare Workers by yeppie on Sunday June 02, 2019 @08:19AM (#20075006)
> We're building out our storage products -- we started with Workers KV, our distributed Key-Value store, and will to continue expanding our offering to support more use cases.

I have no affiliation, but would love to see a partnership with Dgraph.. Feels like a perfect match for both parties.

Re:Cloudflare Workers by geofft on Sunday June 02, 2019 @09:13AM (#20075229)
Fascinating, Wrangler is in Rust but installed through npm? I guess you did some market research and determined that more of your target audience would have npm installed than cargo, and then stuffed the compiled binary in an npm package or something?
Re:Cloudflare Workers by steveklabnik on Sunday June 02, 2019 @09:20AM (#20075257)
It’s also just a nicer experience; let each audience install in the way that feels natural to them. And since binary releases are being built anyway, why make npm users wait on the Rust compiler.

We’re not the first to do this, by the way. This is how ripgrep is integrated into VS: Code, in my understanding.