News for hackers. Stuff that matters.
Re:Whitehouse.gov Chooses WordPress, Again by thayne on Saturday January 23, 2021 @09:08PM (#25888306)
From an operations perspective, gatsby and next.js are much simpler though. You are just deploying static content behind a webserver or even something like s3. Horizontal scaling is almost trivial. With wordpress though, you have to worry about a database as well, scaling is more complicated, you need to run php on your webservers (which has security implications), updates that include schema updates frequently require downtime, etc.
Re:Whitehouse.gov Chooses WordPress, Again by pembrook on Sunday January 24, 2021 @05:29AM (#25890899)
You’re not wrong, but you’re missing the point.

The “operations” perspective is the least important perspective on any marketing site/blog.

Design flexibility in production, marketing features and multi-author content production are the only thing that matters.

Gatsby is built by developers, for developers. And it’s hilariously out of touch with the needs of anybody else.

We’re almost 10 years into the static site ecosystem and there’s still no easy way to do even 1/10th of what Wordpress can do without building everything from scratch and duct taping it together with a rigid headless CMS in the middle.

Re:Whitehouse.gov Chooses WordPress, Again by thayne on Monday January 25, 2021 @01:16AM (#25899926)
> The “operations” perspective is the least important perspective on any marketing site/blog.

It definitely isn't for the marketing sites and blogs I maintain. Site stability and reliability trump how convenient it is for marketing content creators to release changes. Better to have a site that doesn't have the latest change than a site that is completely down, or worse a site hacked because of a vulnerability in the CMS. Is that true for every site? Absolutely not! Although it seems like it would be for whitehouse.gov.

Re:Whitehouse.gov Chooses WordPress, Again by pembrook on Monday January 25, 2021 @07:04AM (#25902229)
> Site stability and reliability trump how convenient it is for marketing content creators

You’re optimizing for the wrong thing then. Content creation, driving traffic to the site, and converting that traffic is the harder, more important task.

Your role is the easiest, most trivial one.

On the spectrum of engineering problems, I’d place self driving cars and sentient AI somewhere on the right side labeled difficult.

On the left side of the scale, at the far edge labeled easiest, I’d place “keeping a wordpress site online.”

40% of the internet is powered by Wordpress, so I think a few hundred million people have figured it out.

On the other hand, 99% of all websites get little to no traffic. Maybe this is the difficult part you should be optimizing for instead?

Re:Whitehouse.gov Chooses WordPress, Again by thayne on Monday January 25, 2021 @10:48PM (#25912280)
> On the other hand, 99% of all websites get little to no traffic. Maybe this is the difficult part you should be optimizing for instead?

Well, the sites I'm talking about get enough traffic that if they are down for a few minutes people notice, and a single wordpress server isn't enough to handle the traffic ;). If you have little to no traffic that's less of an issue.

Re:Whitehouse.gov Chooses WordPress, Again by deanclatworthy on Saturday January 23, 2021 @11:17PM (#25889186)
There are static site builders for Wordpress so you can use WP only as an admin tool and deploy a package to s3 or whatever. Build times are relatively trivial unless you have 10s of 1000s of pages.
Re:Whitehouse.gov Chooses WordPress, Again by irjustin on Saturday January 23, 2021 @09:28PM (#25888436)
Horizontal scaling for static content is just as trivial if not more trivial in WordPress with the plugins.

[Edit] downvotes are fine but let's open up discussion.

Further edit, WP has great static content manager plugins. It's not direct to S3 but a single server can handle a lot of traffic in that mode.

The part that becomes significantly easier is updating that content or adding new ones. You don't need devops to rebuild and redeploy.

Re:Whitehouse.gov Chooses WordPress, Again by thayne on Saturday January 23, 2021 @10:52PM (#25889036)
I think we are talking about different things. I'm not talking about static assets that you use in your site. I mean the entire site is static, and thus doesn't require any database or any server-side page generation. Which means not only that it is easier to scale since you don't even have any state in the database, but each node can also handle more traffic, because it is doing less. (And if you something like s3 or github pages, or netlify, you don't even need to worry about individual servers).

> The part that becomes significantly easier is updating that content or adding new ones. You don't need devops to rebuild and redeploy.

From my perspective as an SRE, that's actually a bad thing. I've seen content creators take down big parts of the site because they changed or deleted an asset. Most of the time that could have been caught by automated tests as part of a build pipeline, if one had been in place.

There is certainly a trade-off though. Wordpress and Drupal are great for quick turnaround content creation and editing. If you want your changes to be live as soon as you make them , Wordpress is better at that than a static site generator. On the other hand if you want rock-solid stability, and want any changes to go through a gamut of automated tests, Wordpress is not a good fit. It is possible, but it definitely isn't easy.

Re:Whitehouse.gov Chooses WordPress, Again by kortilla on Saturday January 23, 2021 @11:50PM (#25889378)
> I think we are talking about different things.

No, you aren’t. Wordpress has plugins to generate static html for all of the posts so visitors can be served without database hits.

Re:Whitehouse.gov Chooses WordPress, Again by marc_io on Sunday January 24, 2021 @06:53AM (#25891310)
There are also webhosts that specialize exactly in this kind of feature, generating those static assets and hosting them for you.
Re:Whitehouse.gov Chooses WordPress, Again by marc_io on Sunday January 24, 2021 @06:49AM (#25891292)
This is why I generally recommend a solution like Publii (also Open Source) for simple sites that don't need extreme flexibility. It's “client friendly“ as WordPress, but generates static content in nature.
Re:Whitehouse.gov Chooses WordPress, Again by 867-5309 on Sunday January 24, 2021 @03:18AM (#25890328)
>you need to run php on your webservers

are you suggesting to run it remotely? on even a small site the performance impact would be noticeable. also, you'd then be securing two systems instead of one

Re:Whitehouse.gov Chooses WordPress, Again by irrational on Saturday January 23, 2021 @09:56PM (#25888657)
Wait, what non-trivial site doesn’t require a database?
Re:Whitehouse.gov Chooses WordPress, Again by giantDinosaur on Saturday January 23, 2021 @10:59PM (#25889074)
All websites require a source for their data (i.e. a database), but many websites don't really need to be directly connected to a SQL database for nearly every page request or similar and can just use really simple files in S3 or something.
Re:Whitehouse.gov Chooses WordPress, Again by monoideism on Saturday January 23, 2021 @10:02PM (#25888684)
Many, many informational web sites do not require a database, including many non-trivial sites I've done for clients. Hugo is particularly adept for non-trivial static sites (via it's ability to use built-time API json data, etc).
Re:Whitehouse.gov Chooses WordPress, Again by toast0 on Saturday January 23, 2021 @11:34PM (#25889289)
Most corporate blogs with comments disabled would be fine as a filesystem, rather than a database.
Re:Whitehouse.gov Chooses WordPress, Again by earthboundkid on Saturday January 23, 2021 @11:37PM (#25889313)
JSON files in a git repo will get you really far if you want it to.