WordCamp SLC 2019
Are we greater than the sum of our parts?
Vanilla WordPress
Headless WordPress
When it would make sense to use a headless WordPress setup
When it would not make sense
Real-world example
<Hello />
www.mysite.com
othersite.com
When you anticipate publishing on multiple platforms (website, phone app, watch app, etc)
When you need the same content to appear across multiple services (public-facing website, CRM, or other internal services)
When you want to take advantage of modern frameworks like GatsbyJS
It's only you and you want to give it a try.
You need to rely on plugins or themes
You're handing it off to someone who isn't tech-savvy
It can be overkill
WordPress is our "source of truth" for our data
Employees can enter information about new cars, categorize them, upload images, etc.
House data about past or potential customers
Store SEO data
WPGraphQL is much faster
Single Request
Frontend focused for rapid development
Query agnostic (knows if you’re asking for meta, categories etc.)
Using the REST API can be slow
Loads WordPress Core
Loads Plugins, who can be greedy sometimes
Independent queries that have no idea about each other
Predefined endpoints
Website
CRM
GatsbyJS can have CRA abilities for our CRM
GatsbyJS can statically generate the pages of our website ahead of time
A large array of plugins
Offline support
Performant
Lazily load content
Predict user behavior and prefetch content
Much more
"Use a headless setup if it makes sense. If it doesn't make sense. Don't." - Wayne Gretzky
- Alex Young