Where Should Native Code Live?

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Where Should Native Code Live?

Phalcon, Symfony, TrueAsync and Flow at different layers of the stack.

Interactive version — https://slide.darkwood.com/slides/where-native-code-lives

Mathieu Ledru

November 27, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

16 slides
  1. Slide 1 · 1/2 · représentation statique Darkwood · PHP

    architecture · 2026 Where Should Native Code Live? Phalcon, Symfony, TrueAsync and Flow at different layers of the stack Framework · Application · Runtime @matyo91 Version interactive : https://slide.darkwood.com/slides/where-native-code-lives
  2. Slide 1 · 2/2 · représentation statique Darkwood · PHP

    architecture · 2026 Where Should Native Code Live? Phalcon, Symfony, TrueAsync and Flow at different layers of the stack · Orchestration @matyo91 Version interactive : https://slide.darkwood.com/slides/where-native-code-lives
  3. The context A client architecture POC - a familiar dilemma.

    THE VISIBLE QUESTION THE DEEPER QUESTION Should we migrate from Phalcon to Symfony? Where should performance, boundaries, and workflows live? High-traffic PHP platform · proven performance · growing workflow complexity · maintenance pressure. 01 | context @matyo91
  4. The false debate Phalcon vs Symfony vs TrueAsync They are

    not direct competitors. Different layers Different constraints Different tradeoffs Framework choice is only part of the architecture. 02 | false-debate @matyo91
  5. Three native layers Each technology optimizes a different concern. Pha

    Native framework layer lcon MVC, router, ORM, cache True Sy Application structure - DI, mfo security, ecosystem, ny boundaries Native runtime - Asyn coroutines, async I/O, c 03 | layers execution @matyo91
  6. Phalcon Phalcon was not a mistake. C extension Read-heavy fit

    Zephir/C · low overhead on the MVC path. Predictable latency · monolith APIs · cache-friendly. Still maintained Valid choice v5.x active · releases in 2026 · ecosystem backers. When MVC performance and team expertise still dominate. 04 | phalcon @matyo91
  7. The shift The optimization target changed. BEFORE MVC bootstrap Dispatch

    cost Framework overhead NOW I/O in workers Multi-step workflows Domain boundaries Interop & hiring Obsolete? Wrong question. What optimization matters now? 05 | optimization @matyo91
  8. Slide 7 · 1/1 · représentation statique Architecture Where should

    native code live? Where does complexity live? Orchestration layer Workflows and pipelines Application layer Symfony structure boundaries DI ecosystem Framework layer Phalcon native MVC Runtime layer TrueAsync ext-async optional execution Four independent decisions - not one migration checkbox. 06 | where-native Version interactive : https://slide.darkwood.com/slides/where-native-code-lives @matyo91
  9. Boundaries Boundaries before frameworks. Many migrations fail because the container

    changes - not the domain. Bounded contexts Domain vs application services CQRS / read models Eventual consistency Redraw boundaries first. Framework second. 07 | boundaries @matyo91
  10. Slide 9 · 1/1 · représentation statique Archetype · PEFT

    Read-heavy editorial platform pattern. Canonical store Ingestion Publication Invalidation Read models Read APIs Event-driven Derived views Cache-heavy read path 08 | peft Version interactive : https://slide.darkwood.com/slides/where-native-code-lives @matyo91
  11. Orchestration Frameworks excel at request response. → Mature systems exceed

    that cycle. Validate → Persist → Invalidat e → Rebuild → Emit Multi-step workflows need a first-class architectural place. 09 | orchestration @matyo91
  12. Slide 11 · 1/2 · représentation statique Flow Same workflow.

    Interchangeable execution. DriverInterface - business logic stable, execution model changes. Fiber default Amp ReactPHP Swoole TrueAsync experimental 10 | flow Version interactive : https://slide.darkwood.com/slides/where-native-code-lives @matyo91
  13. Slide 11 · 2/2 · représentation statique Flow Same workflow.

    Interchangeable execution. DriverInterface - business logic stable, execution model changes. $flow = (new Flow(job: new Validate(), driver: $driver)) ->fn(new Persist()) ->fn(new RebuildReadModel()); Flow explores orchestration as an architectural primitive - not a framework replacement. 10 | flow Version interactive : https://slide.darkwood.com/slides/where-native-code-lives @matyo91
  14. Paths Four credible outcomes - none is default. 0 Stay

    on Phalcon · modernize 0 Migrate to Symfony · 1 incrementally 2 ecosystem & structure 0 Hybrid · coexistence with 0 Runtime async · independent 3 clear API contracts 4 of web framework 11 | paths @matyo91
  15. Anti-patterns What not to do. Migrate by reflex - when

    SLOs and team fit are fine Put async everywhere - TrueAsync is experimental, opt-in only Change framework without redrawing boundaries Confuse framework migration with workflow design Turn Flow into a framework for every feature 12 | anti-patterns @matyo91
  16. Conclusion Framework choice still matters. The deeper questions: Workflows Boundaries

    Orchestration Where do multi-step pipelines live? Where does domain end and coordination begin? Who owns execution strategy? Native code distributes across the stack. 13 | conclusion @matyo91

More Decks by Mathieu Ledru

Other Decks in Programming