Hacker News new | ask | show | jobs
by mvn9 2137 days ago
What's the point of using those services over uploading the app files into a directory that is served by any webserver?

>Render is a unified platform to build and run all your apps and websites with free SSL, a global CDN, private networks and auto deploys from Git.

Apart from the CDN, that's all available for e.g. Digital Ocean Droplets. But why would a CDN be needed for static websites?

1 comments

A CDN is most useful for static sites, no? Since the page content rarely changes it's easy to cache.
But why do you need it? Being on top of HN with 10,000 visitors doesn't kill a simple static site. Likewise, a client-rendered web-app shouldn't be too much for a simple server.

It makes sense to use those services for all the additional stuff, like Netlify's offers:

>User identity, Serverless functions, Instant forms, Split testing & rollouts, Analytics, Large media

But for a basic web-app, where's the benefit?

I think it isn't so much about what traffic to a static site will do to a server, but rather what the experience is for the end user. The tie in to CDNs help reduce load time for your end user.
Yet web-apps are made to not be bothered by load-times. Web-apps are cached by the browser. Once downloaded, startup-time should be instantly.

And downloads shouldn't take too long. Basic 1Gbit connections give you 100Mbyte per second, 10M per 100mils. A landing page should be doable in 10M, and then there is at least one second left to load the rest of the page before the user can react and make a choice.

The problem is more about latency, not so much bandwidth. Also, not everyone has a good connection.

Cache only works the second time the user comes to your page. By definition, every user will experience slow loading the first time.

That said, it probably depends on your use case if it is worth bothering with a CDN or not.

In the case you mentioned (top of HN with 10,000 visitors), each user would be loading the full webapp for the first time, so I think caching would be mostly irrelevant.