Live data from Hacker News

Cloudflare Pages: Best server tech since CGI-bin?

taras.glek.net

71–80 of 226 posts

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

#71

Earlier quoted context omitted.

Cloudflare reports 50% quarter growth year over year, it sounds to me you're in a minuscule minority.

Yes, let's simplify the Internet, being decentralised is such a crutch! We should all just connect directly to Cloudflare.

You go ahead and play "being decentralised" with your buddies while people in the real world just mind their own business doing whatever they need to do using the current right tool for the job(in this case Cloudflare being the tool).

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

#72

Those function don't suffer from cold start time? When somebody hit my webserver for the first time, how long are they gonna wait for the page to be loaded? Assuming a noop in the functions part.

It uses clouflare workers, which is just spinning up v8 isolates, so there's no VM booting up. It's fast. They are also edge located. There are scenarios where using the kv or durable objects can cause a round trip back to the mothership, but not for reads.

https://developers.cloudflare.com/workers/learning/how-worke...

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

#73

What is really annoying is that Cloudflare pages will strip the file extension off of your html pages, and perform permanent redirects to those new URLs. Now if you're intending on moving to a new hosting service that doesn't do that (cgi-bin), all Google search results to your site will 404. Github pages and likely others also supports this format, so moving between those two services doesn't exhibit this problem. M…

Can't you use their new Bulk Redirects to fix it?

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

#74
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).

Yes. New school's defining feature is needless layering of complexity to hide the simple truth of the file system from users.

Is there a reason why someone visiting your website should know or care about file extensions?

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

#75
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).

Yes. New school's defining feature is needless layering of complexity to hide the simple truth of the file system from users.

Maybe this is just me, but I like that I can decouple the way I organize my file system from the way users access my site. And with that comes the ability to get rid of file extensions and make urls more human-friendly. Remember, not every person has file extensions turned on by default on their Windows File Explorer!

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

#76
post #27

What is really annoying is that Cloudflare pages will strip the file extension off of your html pages, and perform permanent redirects to those new URLs. Now if you're intending on moving to a new hosting service that doesn't do that (cgi-bin), all Google search results to your site will 404. Github pages and likely others also supports this format, so moving between those two services doesn't exhibit this problem. M…

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

"Old school vs. new school" arguments should be replaced with "Pros vs Cons". Call me, old schooled.

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

#78
post #25

Why not just make it CGI (or FastCGI) compatible so you can test it locally or run it in other environments? At least for things that are actually generating responses rather than acting as middleware. Oh, right, vendor lock-in.

The engine is open source: https://github.com/cloudflare/workerd We did not create our own engine to create "lock-in". On the contrary, it would be a huge win for us if we could simply run FastCGI or Node or whatever applications unmodified. We'd be able to onboard a lot more customers more quickly that way! Our product is our physical network (with hundreds of locations around the world), not our specific developmen…

Are there guides for application architecture with Workers?

I'm interested in Durable Objects but I don't know how to work within the 50-subrequest limit on the Free or Bundled plans.

It sounds like I can only read from 50 Durable Objects or KV queries in a single request. If my usage pattern is e.g., sharing docs with many users, how would I let more than 50 users access a doc?

Whether I consider fanning out on writes or fanning in on reads I'd need more than 50 subrequests. How should I approach this?

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

#79
post #4

Earlier quoted context omitted.

Static hosting combined with server-side dynamic content modification using postgres was the interesting part for me. Static hosting has historically been seen as exactly that, static and immutable. Things like Cloudflare functions/workers can turn static hosting into dynamic content delivery while maintaining (most of) the benefits of static hosting. Granted, this can be done whether the underlying content is hosted…

I’m still struggling to understand how this is any different than an oldschool cms or blog with a cache in front.

no add + free.

Plus CDN if that matters.

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

#80

Earlier quoted context omitted.

Yes. New school's defining feature is needless layering of complexity to hide the simple truth of the file system from users.

Is there a reason why someone visiting your website should know or care about file extensions?

I guess no one should know whether a pdf is a pdf. Or even whether it's a .com or a .org domain - the browser should just strip all that confusing stuff away!
Post reply on HN