Skip to content

Talk

Strategic Design in the Frontend: Moduliths & Micro Frontends

DDD Europe 2026by Manfred Steyer

Slides of the talk (60)

  1. Slide 1 of 60: Strategic Design in the Frontend:
  2. Slide 2 of 60: "… and then
  3. Slide 3 of 60: Frontends became quite
  4. Slide 4 of 60
  5. Slide 5 of 60: 1) How to Structure our Frontends?
  6. Slide 6 of 60: About Me
  7. Slide 7 of 60: How to Structure our
  8. Slide 8 of 60: Good Fences Makes
  9. Slide 9 of 60: Vertical Architectures
  10. Slide 10 of 60: How to Find Good
  11. Slide 11 of 60: Let's Try With Semantics …
  12. Slide 12 of 60: Collaborative Modelling can Help
  13. Slide 13 of 60: Booking Boarding
  14. Slide 14 of 60: Mindset & Techniques,
  15. Slide 15 of 60: Are These Slices the
  16. Slide 16 of 60: Sometimes yes, …
  17. Slide 17 of 60: …, sometimes no.
  18. Slide 18 of 60: Consider the
  19. Slide 19 of 60: Are These Slices "Real"
  20. Slide 20 of 60: If there is translation, the frontend
  21. Slide 21 of 60: "A bounded context owns the
  22. Slide 22 of 60: "[…] DDD folks […] can make the
  23. Slide 23 of 60: Better Question:
  24. Slide 24 of 60: ✓ Different Models
  25. Slide 25 of 60: Translation
  26. Slide 26 of 60: Booking Boarding Shared
  27. Slide 27 of 60: Booking Boarding Shared
  28. Slide 28 of 60: Booking Boarding Shared
  29. Slide 29 of 60: Moduliths with Nx
  30. Slide 30 of 60
  31. Slide 31 of 60: • Organize Repos and Project(s) Around Libraries
  32. Slide 32 of 60: Moduliths
  33. Slide 33 of 60: @softarc/eslint-plugin-sheriff
  34. Slide 34 of 60: DEMO
  35. Slide 35 of 60: Micro Frontends
  36. Slide 36 of 60: Micro Frontends
  37. Slide 37 of 60: Micro Frontends Help to
  38. Slide 38 of 60: Integration via Hyperlinks
  39. Slide 39 of 60: UI Composition with Hyperlinks
  40. Slide 40 of 60
  41. Slide 41 of 60
  42. Slide 42 of 60: Integration via Shell
  43. Slide 43 of 60: SPA-based Shell
  44. Slide 44 of 60: Module Federation
  45. Slide 45 of 60: Module Federation
  46. Slide 46 of 60: Sharing Libs
  47. Slide 47 of 60: Alternatives Getting Popular
  48. Slide 48 of 60
  49. Slide 49 of 60: DEMO
  50. Slide 50 of 60: Multi-Framework/
  51. Slide 51 of 60: Not perfect :)
  52. Slide 52 of 60: Result: Best of Both Worlds
  53. Slide 53 of 60: DEMO
  54. Slide 54 of 60: More Details
  55. Slide 55 of 60: Free eBook (6th Edition)
  56. Slide 56 of 60: Costs of
  57. Slide 57 of 60: Micro Frontend Platform Team
  58. Slide 58 of 60: ✓ Domain thinking: also valueable in the frontend
  59. Slide 59 of 60
  60. Slide 60 of 60: [Social Media] Manfred Steyer
Slide text (all slides)
  1. Strategic Design in the Frontend: Moduliths & Micro Frontends ANGULARarchitects.io
  2. "… and then someone will also create a guest area"
  3. Frontends became quite powerful … and complex! Modern SPAs are far more than receivers of DTOs
  4. –
  5. 1) How to Structure our Frontends? (+ how Strategic Design can help) 2) Implementation with Frontend Moduliths and Micro Frontends 3) Demos and Live Coding 4) Labs Agenda
  6. About Me (Remote) Angular Workshops and Consulting Google Developer Expert for Angular Blog, Books, Articles, and Talks about Angular Manfred Steyer, ANGULARarchitects.io
  7. How to Structure our Frontends? + how Strategic Design can help …
  8. Good Fences Makes Good Neighbors!
  9. Vertical Architectures < Minimal Dependencies Vertical 1 Vertical 2 Vertical 3 Feature Feature Feature Feature Feature Feature Feature Feature Feature Conway's law
  10. How to Find Good Verticals?
  11. Let's Try With Semantics … Book Flight Check-in Passenger Check-in Luggage Board Plane Pickup Luggage
  12. Collaborative Modelling can Help
  13. Booking Boarding Flight Price Seats Passenger Tickets Flight Ticket Different Models: Clear Semantics → Less Deps
  14. Mindset & Techniques, Frontend devs can learn from Strategic Design
  15. Are These Slices the Same as in the Backend?
  16. Sometimes yes, …
  17. …, sometimes no.
  18. Consider the Frontend Perspective Early
  19. Are These Slices "Real" Bounded Contexts?
  20. If there is translation, the frontend can have a very simple ("cheap bargain") Bounded Context
  21. "A bounded context owns the vertical slice of functionality [including the] presentation layer"
  22. "[…] DDD folks […] can make the final mistake of exposing this complexity to the customer."
  23. Better Question: What can we Learn for the Frontend?
  24. ✓ Different Models ✓ Look out for Semantics ✓ Look out for Pivotal Events ✓ Look at Processes ✓ Team up with Experts → Domain Knowlege ✓ Use Collaborative Modeling Takeaways
  25. Translation into Frontend Code
  26. Booking Boarding Shared Feature Feature Feature Feature Feature UI UI UI UI UI UI UI UI UI Data Data Data Data Data Data Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 Smart Comp. Dumb Comp.
  27. Booking Boarding Shared Feature Feature Feature Feature Feature UI UI UI UI UI UI UI UI UI Data Data Data Data Data Data Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 Smart Comp. Dumb Comp.
  28. Booking Boarding Shared Feature Feature Feature UI UI UI Data Data Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 Feature Feature Feature Feature Feature Feature Feature UI Data Util UI Data Util
  29. Moduliths with Nx
  30. –
  31. • Organize Repos and Project(s) Around Libraries • Module Boundaries • Build Cache • Dependency Graph Selected Features
  32. Moduliths with Sheriff
  33. @softarc/eslint-plugin-sheriff Modularization Boundaries on a per-folder basis
  34. DEMO
  35. Micro Frontends
  36. Micro Frontends Booking App Check-in App Boarding App Luggage App
  37. Micro Frontends Help to Scale Projects to several teams!
  38. Integration via Hyperlinks
  39. UI Composition with Hyperlinks µApp SPA µApp SPA µApp SPA
  40. –
  41. –
  42. Integration via Shell
  43. SPA-based Shell µService µFrontend µFrontend µFrontend Shell
  44. Module Federation
  45. Module Federation Shell (Host) Micro Frontend (Remote) // Maps Urls in // webpack config remotes: { mfe1: "http://..." } import('mfe1/Cmp') // Expose files in // webpack config exposes: { './Cmp': './my.cmp.ts' }
  46. Sharing Libs Shell (Host) Micro Frontend (Remote) shared: [ "@angular/core", "…" ] shared: [ "@angular/core", "…" ]
  47. Alternatives Getting Popular TURBOPACK
  48. –
  49. DEMO
  50. Multi-Framework/ Multi-Version Solutions
  51. Not perfect :) Abstract them, e.g. via Web Components Different Versions or Frameworks? Angular App (MFE) React App (MFE) Coarse-grained Web Component
  52. Result: Best of Both Worlds
  53. DEMO https://red-ocean-0fe4c4610.azurestaticapps.net
  54. More Details Workarounds for Zone.js and the Router Link
  55. Free eBook (6th Edition) ANGULARarchitects.io/book Module Federation & Nx
  56. Costs of Micro Frontends
  57. Micro Frontend Platform Team Stream-aligned team 1 Stream-aligned team 2 Stream-aligned team … XaaS Flow of change
  58. ✓ Domain thinking: also valueable in the frontend ✓ Different models, semantics, pivotal events ✓ Collaborative modelling together with domain experts ✓ Frontend Moduliths vs. Micro Frontends Conclusion
  59. –
  60. [Social Media] Manfred Steyer [web] ANGULARarchitects.io Manfred Steyer @ Manfred Steyer Slides & Examples Remote Company Workshops and Consulting http://angulararchitects.io

Free eBook

Micro Frontends & Moduliths with Angular

Learn how to build enterprise-scale Angular applications which are maintainable in the long run. Free eBook by Manfred Steyer, GDE.

Get the free eBook: Micro Frontends & Moduliths with Angular (opens in a new window)