Slides for my first ever WordCamp presentation - talking about how Decoupled architectures can help power exciting new use-cases. With the WP-API JSON REST interface ready for use, now is the time to start learning to speak HTTP!
4. Pantheon.io 4
Monoliths vs. Microservices
Monolith
Templates & Themes
Display Logic
Editorial UI
Admin UI
VS.
Decoupled
5. Pantheon.io 5
Monolithic Architecture
mon·o·lith
ˈmänəәˌliTH/
noun
1.a large single upright block of stone, especially one shaped into or serving as a pillar or
monument.
• synonyms: standing stone, menhir, megalith, sarsen (stone)
• "no one knows for sure who erected these monoliths and why”
• a very large and characterless building.
• "the 72-story monolith overlooking the waterfront”
• a large block of concrete sunk in water, e.g., in the building of a dock.
2.a large and impersonal political, corporate, or social structure regarded as intractably
indivisible and uniform.
• "the dominance of broadcasting monoliths limits local programming"
6. Pantheon.io 6
The Limits of the Theme Layer as Architecture
Theme Layer
Plugins / Core
Permeable
Boundary
Exciting / awkward
game of chance
19. Pantheon.io 19
Static Generator / Renderer
•
CMS
Static
Site
User
Request
Static
• Create a fast and resilient
user-facing site.
• Utilize front-end atomic
design tools, minimal/elegant
markup, etc.
• Read-only, but highly secure
and scalabe.
20. Pantheon.io 20
Hybrid
•
CMS
Static
Site
User
Request
Static
• Build up a REST API on your
site to power dynamic forms/
dashboards.
• Many other functions served
directly from Drupal as per
normal.
• Restrains the scope. Allows
for particular experiences to
be enhanced.
•
CMS
JS App
User
Request
Hybrid
21. Pantheon.io 21
“Single Page” App
•
CMS
Static
Site
User
Request
Static
• Client side JavaScript
application runs in-browser,
pulls data from CMS via API.
• May include user interactions,
or be purely content oriented.
• Typically utilize a front-end
framework like Angular,
Backbone, or React.
•
CMS
Single
Page App
User
Request
Single Page
22. Pantheon.io 22
Native Mobile App / IoT
•
CMS
Static
Site
User
Request
Static
• CMS powers embedded
applications via API.
• May also present some web
functionality to users.
• Drive IOS and Android native
apps, as well as “internet of
things” implementations.
•
CMS
Native
Mobile
App
User
Request
Native
(optional)