HN user

rita3ko

340 karma
Posts21
Comments35
View on HN
blog.cloudflare.com 1y ago

Containers are available in public beta for simple, and programmable compute

rita3ko
80pts21
boristane.com 1y ago

One Database per User with Cloudflare Durable Objects and Drizzle ORM

rita3ko
4pts0
blog.cloudflare.com 1y ago

New URLPattern API brings improved pattern matching to Node.js and Workers

rita3ko
4pts1
blog.cloudflare.com 3y ago

Workers Browser Rendering API

rita3ko
6pts2
marketanalysis.com 4y ago

Comparing WordPress Performance on MySQL vs. SQLite

rita3ko
3pts0
wintercg.org 4y ago

Web-Interoperable Runtimes Community Group

rita3ko
4pts0
blog.cloudflare.com 4y ago

Native Support for Stripe’s JavaScript SDK in Cloudflare Workers

rita3ko
5pts1
css-tricks.com 4y ago

I Built a Cross-Platform Desktop Application with Svelte, Redis, and Rust

rita3ko
4pts0
blog.cloudflare.com 5y ago

Cloudflare Pages is now Generally Available

rita3ko
338pts119
blog.cloudflare.com 5y ago

Improving Performance and Search Rankings with Cloudflare for Fun and Profit

rita3ko
2pts0
blog.cloudflare.com 5y ago

Wrangler Dev – The Edge on Localhost

rita3ko
1pts0
blog.cloudflare.com 5y ago

Making Magic: Reimagining Developer Experience for the World of Serverless

rita3ko
3pts0
blog.cloudflare.com 6y ago

A History of HTML Parsing at Cloudflare

rita3ko
5pts0
blog.cloudflare.com 6y ago

Introducing HTMLRewriter (Streaming HTML Parser API) to Cloudflare Workers

rita3ko
1pts0
blog.cloudflare.com 6y ago

How We Design Features for Wrangler, the Cloudflare Workers CLI

rita3ko
2pts0
blog.cloudflare.com 7y ago

Cloudflare announces Workers free tier, workers.dev deployments, CLI

rita3ko
8pts0
blog.cloudflare.com 7y ago

Deploying Cloudflare Workers with GitHub Actions and Serverless

rita3ko
3pts0
blog.cloudflare.com 7y ago

Identifying and alerting on data loss using Workers

rita3ko
1pts0
blog.cloudflare.com 7y ago

Gradually migrating back end frameworks while maintaining HA using ESI

rita3ko
1pts0
medium.com 8y ago

Why I dress up for my tech job

rita3ko
4pts0
techcrunch.com 9y ago

Twitter Glitch Forces Accounts to Follow Potus

rita3ko
2pts0

(confession: i work at cloudflare)

but we just made our first announcements for this week, including: - d1 (our serverless database) going GA - hyperdrive (SQL query cache for postgres and mysql) going GA - and workers analytics engine

if you just moved off google domains, i recommend checking out cloudflare pages, which is cloudflare's product for hosting static and dynamic sites (with gitops, everything else included).

hi there! i'm on the workers team at cloudflare.

you're right that the ideal application would run fully on the edge (which is why we try to offer things like KV, Durable Objects, and more options in the future for you to have your data where your logic is running).

however — moving your data to the edge is unlikely to happen overnight. and it's going to take us a bit to offer you all the data options for all the different use cases that you need (after all, there are many types of databases for a reason), so this gives users greater optionality. secondly, if your data is already somewhere but you want to build new features on top of it, now you can. (say, i already have a database with all my apartment listings in it, but i want to add a new feature where i let my users add photos of the apts). i can now build that feature in workers, without having to undergo an otherwise massive migration.

one last thing, this is just the beginning of what even database connectors mean. in the future, we can cache data, and actually improve performance and reliability even if the dc is far (as you said, make it easier to have best of both worlds).

jam.dev are good friends of ours (both founders ex-cloudflare and some of my good personal friends!) :) but was thinking about it more as a play on jamstack.

re: excluding branches — we're actively looking into it!

and yes, that error has been fixed AFAIK, but let me double check.

There's a bit of background here https://developers.cloudflare.com/pages/migrations/migrating...

TL;DR: Workers Sites is basically an elaborate Worker template (which you can modify) and allows you to deploy your sites using the Wrangler CLI — it'll take care of uploading your assets and all, but you're responsible for setting up CI, etc for a continuous deployment experience.

Cloudflare Pages, by contract, integrates directly with Github, which allows us to offer a lot more features out of the box, including running your build, preview URLs, etc.

Hope that makes sense.

Hey there. I'm the PM for Pages. That's fair feedback (though a lot could have changed even in the past few weeks, so I would recommend taking another look)

- It's hard for me to tell what's causing the issue (the build logs should give an idea of at least at which stage). One thing we've added over the course of the beta is connection to GH comments, which requires a new type of permission. So that might be causing the failure, but also, failed builds should result in a comment (and email) for notifications, depending on your GH settings. All of that said, my email is rita at cloudflare if you want to forward me more details, I can help look into it.

- Creating a canonical notion of your domain is something we're thinking about. Right now the preview links will set X-Robot-Tag so they can't be crawled but yeah, ideally we want to give you a way to remove myproject.pages.dev if you're not using it

- The cache-control settings are intended to keep your site from serving stale content by relying on etags — your browser should still serve from cache if the asset hasn't been updated. On the Cloudflare site, we have much longer TTLs.

Anyway, thanks for trying Pages! We're continuing to iterate on it, even after GA so should only be getting better :)

(edit: spacing :P)

Sorry about that — had to keep them separate to avoid spoilers ahead of launch, but trying to avoid a migration on launch day.

To satisfy your curiosity though for our Gatsby setup, you can actually check it out here: https://github.com/cloudflare/cloudflare-docs (the rest of our docs are open source and built in the same way, the Pages docs will just go there as a subdirectory, same as the other products).

Doc engine itself is here: https://github.com/cloudflare/cloudflare-docs-engine

Hi!

I'm a product manager working on Workers — didn't come across hater-y to me at all.

We will actually be rolling out a new version of our docs soon — hopefully make them easier to navigate, and expose deeper information. If there are any specific subjects or corner cases you've run into that you'd like to see better documented — our docs are open source (so issues are welcome!). We definitely want to make it as easy as possible for you to self-service.

Observability and debugging is also a heavy area of investment for us (and I think we've made significant progress here since the launch of Workers). As Kenton mentioned below, wrangler tail is a great way to get a lot of information out of the Worker (and its subrequests) — you can basically log anything. We'd also like to make it easier to log to existing logging platforms from a Worker. If there's any missing information you'd like to see, please do sent me a note ^

It’s not so much that we’re avoiding it, as much as we think there are more interesting things for us to accomplish. We could double down on hosting static sites, but that’s only one use case of the realm of possibilities of what we can achieve with compute on the edge with Workers. We’re excited for people to get their hands dirty, and see where else they take it.

Cloudflare Workers 7 years ago

Sure, the initial login itself has to be done at the origin, or connect to a database, but token authentication can be done at the edge. That means that if, for example, users have to pay for articles, you can still cache the article because the authentication can be validated at the edge.

There are many benefits to running logic at the edge, even in situations like that. Scale is a big one to consider: resiliency and single point of failure are very common problems for any floodgate reservation systems. We didn't have to worry about that here.

In general, the more work you can offload to the edge, the better. There's so much logic that goes into handling a reuqest - we see many customers with conditional HTTP routing, validation, rate limiting, etc -- all requiring round trips to the origin. Now they can be done close to the user.

Cloudflare Workers 7 years ago

It's been really interesting watching the evolution of use cases for Workers.

I would put them into three broader categories: 1. Additional functionality built on Workers: the interesting thing with Workers is that it can be a standalone function, or it can act as a proxy. That means that customers can easily add new functionality on top of existing APIs for example, without having to migrate the whole thing to Workers at once. One interesting example of that was an e-customer used Workers to add a barcode generator funcionality for one of their customers.

2. Applications built on cache: the way CDN usually works is that you build an application, and put a cache on top of it. That comes with all sorts of limitations around what you can and cannot cache. I think with a built in cache, we're going to start seeing more cases where the cache is written to from the beginning. This enables customers to do things like cache content for logged in, or paid users by doing the auth on the edge next to the cache, rather than at the origin. Or easily update only certain chunks of what's in the cache, and thus do all sorts of customization at the edge, without necessitating added latency.

3. Standalone serverless apps: there are a few very interesting examples here, one of which we'll be able to talk more openly about in a few days. I think SamKnows is a good one: they were able to build a download speedtest directly from Workers [1]. Another good one was building the reservations website for Workers.dev - we were able to get that service spun up very quickly, and have it scale infinitely to handle the influx of traffic [2]. Similarly, Cloudflare Access is built entirely on Workers (we are pretty excited about dogfooding!).

A couple random cool ones: I've seen some experimentation with ML on the edge (very much POC, and very early, but everything starts somewhere). And DNA sequencing analysis, which really blew me away [4]

[1] https://blog.cloudflare.com/the-samknows-cloudflare-platform... [2] https://blog.cloudflare.com/api-at-the-edge-workers-and-fire... [3] https://blog.cloudflare.com/building-serverless-apps-with-wo... [4] https://twitter.com/RobAboukhalil/status/1121095204281430016

Cloudflare Workers 7 years ago

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...

Cloudflare Workers 7 years ago

Are you using the email that you made the reservations with? We do the match on that. Otherwise, if you want to shoot me an email at rita at cloudflare dot com, with the subdomains / email you signed up with, I can look into it.

Cloudflare Workers 7 years ago

We're starting to see similar technologies emerge (like Fastly's Lucet). My hypotheses (please take them as that): 1. Many companies are already deeply embedded and invested in container based offerings. 2. As with every new technology, it takes some time for it to take off. Maybe others are hesitant and waiting to see how it plays out for Workers before investing (going pretty well so far :) ). 3. Possible the other providers are working on it, and haven't launched yet.

Cloudflare Workers 7 years ago

Not for the time being - to allow us to run code on the edge, and be able to support many customers, we used V8 (a JavaScript engine) since it built for multi-tenant-per-process secure sandboxing, fast start time, and low overhead (a lot of this is explained in the original blog post here: https://blog.cloudflare.com/introducing-cloudflare-workers/).

We are working on improving our WebAssembly integration, and making it a first-class experience (and we launched multiple improvements with the CLI to allow you to more seamlessly develop in Rust, C and C++). Maybe one day Python WebAssembly will take off.

Cloudflare Workers 7 years ago

Hi! I'm the PM for Cloudflare Workers. Happy to answer any questions about our announcements, or Workers in general.

Full disclosure - I work on Workers at Cloudflare, so obviously biased :)

There are a lot of performance advantages along every step of the way, as you mention. I think you can look at this from many different lenses beyond performance.

A big advantage was how fast and easy this was to get up and running. Simplicity is key here - it's a simple API written in JavaScript (no config, VPS, etc necessary).

The other really important thing is scalability - when workers.dev went live, we didn't have to worry about being able to handle the spiky workload (preregistration sites end up failing quite frequently). This scales infinitely.