Live data from Hacker News

Cloudflare Pages: Best server tech since CGI-bin?

taras.glek.net

141–150 of 226 posts

Re: Cloudflare Pages: Best server tech since CGI-bin?

#141
post #27

Earlier quoted context omitted.

Having .html file extensions is very old school, and its removal is one of the popular/default redirects on all http servers that support it. Site generators also hide it through various methods (e.g. having a folder with the path name with just an index.html where a dynamic redirect isn't possible).

It was removed explicitly for SEO and having a single canonical URL for a resource _for all of time forever_. Right now we use HTML for web pages but who knows what the internet 20, 50, 100, etc. years from now will use--maybe .Super-Awesome-Mega-HTML is all the rage. If over time you are changing your site and its URLs are changing then you're breaking that canonical URL and search indexes, caches, way back machine,…

In case anyone hasn't read it, not including the extension is covered in more detail in "Cool URIs don't change" https://www.w3.org/Provider/Style/URI

Re: Cloudflare Pages: Best server tech since CGI-bin?

#142

In 10 years time when cloudflare goes bankrupt/withdraws the free offering, will you be able to redeploy to another platform or will you start having to delve into 10 year old code and porting it to a new API? Is there at least an nginx-cloudflare module that lets you self-host this stuff?

You can self host the entire Worker runtime if you'd like: https://github.com/cloudflare/workerd

Re: Cloudflare Pages: Best server tech since CGI-bin?

#143
post #14

a bit off-topic, but couldn't resist: > As a shortcut, I used GPT-3 to generate a basic typescript function for me. This let me look at TS type definitions and get a better idea of what’s available so I could get developing. As a long time programmer, I keep trying to maintain my skepticism of AI/ML techniques for program authoring. Comments like this are dissolving my objections by the minute...

I don't know which GPT-3 tooling they were using, but Github Copilot can be _exceptional_ at generating rubbish. Autocomplete, at least for me, was seldom even syntactically correct, and never semantically correct.

Re: Cloudflare Pages: Best server tech since CGI-bin?

#144

Cloudflare continues to add capabilities to their free tier to attract users. Meanwhile, Netlify just ejected all of the free plan users who work off GitHub.

> Netlify just ejected all of the free plan users who work off GitHub.

First I've heard of such news. What does that mean? Link please?

Re: Cloudflare Pages: Best server tech since CGI-bin?

#145

In 10 years time when cloudflare goes bankrupt/withdraws the free offering, will you be able to redeploy to another platform or will you start having to delve into 10 year old code and porting it to a new API? Is there at least an nginx-cloudflare module that lets you self-host this stuff?

The static part, certainly (aside from issues like .html redirects, etc.). The dynamic part, hopefully with minimal work assume you can find a service that offers the same features, plugging into a new interface shouldn't be difficult.

Re: Cloudflare Pages: Best server tech since CGI-bin?

#146
post #88
post #26

Earlier quoted context omitted.

Yes, it's great because static/static+some dynamic bits fits a lot of use cases and it's quite simple to deploy, manage and maintain. It's nothing that new though, Firebase (part of GCP) and Netlify have had that for years. CloudFlare just have the right combination of marketing, reputation, pricing and tech to make headlines with it again.

> Yes, it's great because static/static+some dynamic bits fits a lot of use cases and it's quite simple to deploy, manage and maintain. Do you have some examples? I always get excited by this serverless stuff, but often the use-cases are quite limited if you think about it, or maybe I’m thinking wrong, especially if you take vendor lock into consideration.

A simple usecase I had was submitting a contact us form from a static marketing site and being able to route it somewhere.

Re: Cloudflare Pages: Best server tech since CGI-bin?

#148
Biggest advantage I find is pre-scoped request-level control over everything. When someone loads your page, every single asset request hits your worker. It's both extremely simple and exceptionally powerful. Choose which responses to modify, authenticate, proxy, redirect, or let through. All in a single file with a few dozen LOC. No complex pre-app devops, middleware or routing policies required (i.e. oh sorry that route is proxied by a lambda, or you should check the cloudflare dash there's a worker sitting in front of that).

Yes, there are a bunch of limitations - but in practice I quite appreciate the boundaries and the reasoning. There's also the portability question, but we're talking about PaaS. As someone who was using Firebase for many years, and static AWS + lambda prior to that I find this evolution entirely refreshing.

I've pushed 5 personal projects on pages since Jan and working on more. Most recently https://thesom.au/gh/cvms

Re: Cloudflare Pages: Best server tech since CGI-bin?

#149
post #9

The rest of the industry haven't even started figuring out what Cloudflare Pages Functions + Durable Objects can do. Workers can also send emails for free, and soon you will be able to process them as well with Email Workers. Cloudflare also doesn't charge you for egress either.

I mostly agree. > Workers can also send emails for free, and soon you will be able to process them as well with Email Workers. There's got to be some limitations to that and I don't like it when they're not well defined. Looking at the MailChannels pricing, it looks like it's roughly 40x more expensive than AWS SES on the low end and 4x on the biggest plan before negotiating a custom deal. I can send 500k emails and…

MailChannels is the service other services use, it's the de facto leader in combating spam. They are mostly meant to be used by high-volume hosted email services.

They are very good at detecting abuse. The leading cause of email deliverability problems is not advertisement, it's servers being hijacked by malicious actors.

Post reply on HN