News for hackers. Stuff that matters.
Re:Netlify raises $30M to replace webservers with Applicatio... by tome on Tuesday October 09, 2018 @12:25PM (#18177298)
This may be a naive question, but how many websites are actually static these days?
Re:Netlify raises $30M to replace webservers with Applicatio... by asprouse on Tuesday October 09, 2018 @01:10PM (#18177759)
There is a static renaissance happening as people realize it doesn't make sense to serve content that rarely changes from a database. Think of the millions of Wordpress blogs that could benefit from the speed, reliability and security of a static frontend. Here is more in-depth argument for static:

https://www.takeshape.io/articles/why-the-best-websites-are-...

Also check out https://jamstack.org/ for more info on tools and techniques for going static.

Re:Netlify raises $30M to replace webservers with Applicatio... by jchrisa on Tuesday October 09, 2018 @12:46PM (#18177508)
The model of deploying a single page app that calls serverless endpoints and cloud databases, has architectural reasons to be preferred. Multi-cloud is a great way to be robust to cloud failures, and have better negotiating leverage with your utility vendor. I wrote a blog post about using Netlify with FaunaDB to build multi-cloud serverless applications here: https://fauna.com/blog/survive-cloud-vendor-crashes-with-net...
Re:Netlify raises $30M to replace webservers with Applicatio... by ubercore on Tuesday October 09, 2018 @12:34PM (#18177386)
We host landing and marketing pages and such on netlify, linking off to the app on a subdomain. It's really convenient.
Re:Netlify raises $30M to replace webservers with Applicatio... by pixelrevision on Tuesday October 09, 2018 @12:32PM (#18177371)
Not a ton. But the idea here is you use javascript to call an API for your dynamic content. This way your javascript/css/images are all setup on a CDN that you don't have to manage.
Re:Netlify raises $30M to replace webservers with Applicatio... by manigandham on Tuesday October 09, 2018 @12:50PM (#18177558)
But where does the API come from? Dynamic content needs don't go away with static sites and usually it's yet another service to worry about.
Re:Netlify raises $30M to replace webservers with Applicatio... by brbcoding on Tuesday October 09, 2018 @01:10PM (#18177757)
In our case, we moved a blog from WP to a static Gatsby.js site. It's hosted on Netlify and all content is driven by Contentful where updates trigger a webhook on Netlify to rebuild the blog (new posts are pulled during this build process).
Re:Netlify raises $30M to replace webservers with Applicatio... by manigandham on Tuesday October 09, 2018 @01:39PM (#18178074)
So now you're using 2 different services to host a site, instead of just using hosted Wordpress (or squarespace, wix, etc). Does Contentful provide the same content editing experience? What are the advantages here?
Re:Netlify raises $30M to replace webservers with Applicatio... by fvdessen on Tuesday October 09, 2018 @02:37PM (#18178629)
The advantage is that the resulting website being just static pages will be much faster and secure that your hosted wordpress. And compared to wix etc, you have a lot more control on the appearance and structure of your website, because you can use wathever static website builder you choose
Re:Netlify raises $30M to replace webservers with Applicatio... by manigandham on Tuesday October 09, 2018 @05:09PM (#18179834)
How is it more secure when you're still accessing an API? Wordpress itself might not be the best product but other fully-hosted services are all the same, whether they render the site or just give you an API.

A CDN is equally fast when the content is cached, and if you're building the entire site as static pages then it's not really a dynamic site in the first place and can also be done with HTML or markdown in the same repo.

The fine control seems the be the only real advantage, at the cost of more moving pieces.

Re:Netlify raises $30M to replace webservers with Applicatio... by brbcoding on Tuesday October 09, 2018 @08:20PM (#18180939)
> How is it more secure when you're still accessing an API?

It only accesses the API with a read-only token during the build process.

> it's not really a dynamic site in the first place and can also be done with HTML or markdown in the same repo

This is definitely true and was an option we considered, however colocating hundreds+ posts with code made the repo unnecessarily heavy and slowed our build time drastically. Our content creators also didn't want to use git to edit their content (they would have to learn git / or use the web UI which is a suboptimal editing experience), nor did I want content creators in our repos.

> The fine control seems the be the only real advantage, at the cost of more moving pieces.

Lots of other advantages that I won't outline here, but our data is completely decoupled from our frontend now, so we can do cool stuff like crossposting to different properties via webhook, data cleanup via API (I ran all the blog posts from WP through some remark tools so we have a more standard look and feel), etc... Might not be the right setup for you, but it works really well for us!

Re:Netlify raises $30M to replace webservers with Applicatio... by theNextEpisode on Tuesday October 09, 2018 @06:09PM (#18180240)
Good luck getting content editors to commit code to a repo or in markdowns. The contentful + netlify setup is really elegant.
Re:Netlify raises $30M to replace webservers with Applicatio... by manigandham on Tuesday October 09, 2018 @06:37PM (#18180414)
If you're using Contentful then how is that different or better than wordpress or any hosted system that is made for writing posts?

The only 2 advantages of splitting this into separate systems is extra customization (even though hosted solutions are already very flexible) and compiling the entire site into static files. The 2nd seems to be more of a thing for devs to enjoy rather than something that makes a real difference to users, especially when you're already using a CDN.

Re:Netlify raises $30M to replace webservers with Applicatio... by wmf on Tuesday October 09, 2018 @01:46PM (#18178148)
I think they have a vision of SPAs powered by serverless workers and static assets but they've mostly delivered the static part so far.
Re:Netlify raises $30M to replace webservers with Applicatio... by freebs on Tuesday October 09, 2018 @01:11PM (#18177769)
I'm sure there will be a lot soon. You can trigger builds anytime content is updated via Netlify CMS/Contentful etc.