Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Decoupled WordPress — architecture and challeng...

Decoupled WordPress — architecture and challenges, 2025 WP Vrsac

Slides from my talk at the big birthday edition of WordPress Meetup Vršac (#WPVŠ 03/25, Tačka Susretanja, March 28, 2025).

The talk opens with Apollo 11 and the famous 1202 program alarm: a proof that even a "crashing" computer, understood well, can still land you on the Moon, and uses that as a lens for approaching new architectures with respect rather than hype. From there it walks through the JAMstack and the differences between coupled, decoupled, and headless CMS setups, then looks at what WordPress brings to the table: the built-in REST API, WPGraphQL, and a Next.js frontend with Apollo Client, all wired together locally with DDEV. Along the way, it busts a few myths: no, it doesn't quite work "out of the box," and no, it's not as easy as 1+1, before closing with the real takeaway: don't chase the latest hype, think architecture instead of tools, keep it simple, and enhance only when required. Know your JavaScript, React, and Next.js well, or you'll suffer.

Avatar for Mladen Đurić

Mladen Đurić

March 28, 2025

More Decks by Mladen Đurić

Other Decks in Programming

Transcript

  1. ]{ APOLLO 11: THE MOON LANDING AND 1202 and very

    brie y some musings about what the hack have Next.js to do with WordPress?! Mladen Đurić @MacMladen WordPress Decoupled fl @MacMladen v.1 2025-03-28 2
  2. ]{ 1202: APOLLO GUIDANCE COMPUTER HAD CRASHED Armstrong had had

    his wings clipped over Korea; he’d bounced an airplane off the upper atmosphere; he’d rescued Gemini 8 from a violent zero-gravity spin. Now he was piloting a malfunctioning spacecraft to touch down on an alien world. Just 40 seconds after the computer’s nal restart, he slowed the lander’s forward momentum, then rotated the legs toward the surface. As the engine kicked up a blinding cloud of dust, Aldrin read aloud a steady stream of gures from the console. With almost no fuel to spare, the lander dropped, in slow motion, to kiss the surface upright, and the particles of moon dust hung suspended in the sunlight until the gentle lunar gravity pulled them back to rest. fi WordPress Decoupled fi @MacMladen v.1 2025-03-28 4
  3. ]{ $ whoami A very boring, incompetent guy MLADEN ĐURIĆ

    a.k.a MacMladen @MacMladen WordPress Decoupled v.1 2025-03-28 7
  4. ]{ I’ve been in IT since the age of mainframes,

    8th year of UNIX epoch. @MacMladen WordPress Decoupled v.1 2025-03-28 8
  5. ]{ As soon as I started learning to code I

    was so fascinated and wanted to share what I learned. I was hardly into secondary school when I organised rst computer club and gave rst BASIC course. It was around 1982. In 2016 I started a Professional Web Development School ]{oder. v.1 2025-03-28 fi WordPress Decoupled fi @MacMladen 11
  6. ]{ DECOUPLED Separating front and backend infrastructure Usual CMS architecture

    is coupled meaning that the same web server deals with both backend consisting of persistent storage (database, media) and data processing (database query and manipulation), and frontend generating the markup which is sent to the client (consumer). Decoupled means one system is dealing with the backend part (mostly API on the server) and the frontend which handles rendering and some logic in the client. @MacMladen WordPress Decoupled v.1 2025-03-28 13
  7. ]{ INTRODUCE YOURSELF! Your role? (Visual, Frontend, Backend, DevOps) Your

    experience? (One, three, more years) Using some Javascript already? (React, Next.js) @MacMladen WordPress Decoupled v.1 2025-03-28 14
  8. ]{ TIMETABLE: 1. The JAM stack ~2 min 6. The

    Package~4 min 2. The Reasoning ~2 min 7. 3. The WordPress ~2 min 8. The Myths ~1 min 4. The Next.js ~2 min 9. The Conclusion ~1 min 5. The Plugins ~4 min 10. Q & A 10++ min @MacMladen WordPress Decoupled The Demo ~2 min v.1 2025-03-28 15
  9. ]{ FULLY VS PROGRESSIVELY DECOUPLED PROGRESSIVELY DECOUPLED WORDPRESS FULLY DECOUPLED

    WORDPRESS • Complete seperation of concerns betweeen the presentation layer and backend. • Rather than complete seperates, it diminishes the line between frontend and backend. • Super-fast and exible content delivery with no speci ed delivery environment. • Super-fast content delivery with a speci ed delivery environment. • Full authority over how and where your content appears. • Needs quick design alterations. • User-friendly to both developers and content editors. • Concurrently use WordPress's rendering system and a JavaScript framework. • • Developer-friendly as it gives better control over the frontend. Removes connection between the rendered output of a WordPress page and its data model. fi WordPress Decoupled fl fi @MacMladen v.1 2025-03-28 28
  10. ]{ FINALLY, SOMETHING THAT WORKS OUT OF THE BOX! @MacMladen

    WordPress Decoupled v.1 2025-03-28 48
  11. ]{ THE RIGHT TOOL FOR THE JOB Never overthink or

    over-engineer Never pick latest hype — aim for sustainability Never think WordPress — think architecture Keep it simple, enhance only when required Know well JavaScript, React, Next.js or you’ll suffer @MacMladen WordPress Decoupled v.1 2025-03-28 52