Zum Inhalt springen

Vortrag

Strategic Design in the Frontend: Moduliths & Micro Frontends

DDD Europe 2026von Manfred Steyer

Folien zum Vortrag (60)

  1. Folie 1 von 60: Strategic Design in the Frontend:
  2. Folie 2 von 60: "… and then
  3. Folie 3 von 60: Frontends became quite
  4. Folie 4 von 60
  5. Folie 5 von 60: 1) How to Structure our Frontends?
  6. Folie 6 von 60: About Me
  7. Folie 7 von 60: How to Structure our
  8. Folie 8 von 60: Good Fences Makes
  9. Folie 9 von 60: Vertical Architectures
  10. Folie 10 von 60: How to Find Good
  11. Folie 11 von 60: Let's Try With Semantics …
  12. Folie 12 von 60: Collaborative Modelling can Help
  13. Folie 13 von 60: Booking Boarding
  14. Folie 14 von 60: Mindset & Techniques,
  15. Folie 15 von 60: Are These Slices the
  16. Folie 16 von 60: Sometimes yes, …
  17. Folie 17 von 60: …, sometimes no.
  18. Folie 18 von 60: Consider the
  19. Folie 19 von 60: Are These Slices "Real"
  20. Folie 20 von 60: If there is translation, the frontend
  21. Folie 21 von 60: "A bounded context owns the
  22. Folie 22 von 60: "[…] DDD folks […] can make the
  23. Folie 23 von 60: Better Question:
  24. Folie 24 von 60: ✓ Different Models
  25. Folie 25 von 60: Translation
  26. Folie 26 von 60: Booking Boarding Shared
  27. Folie 27 von 60: Booking Boarding Shared
  28. Folie 28 von 60: Booking Boarding Shared
  29. Folie 29 von 60: Moduliths with Nx
  30. Folie 30 von 60
  31. Folie 31 von 60: • Organize Repos and Project(s) Around Libraries
  32. Folie 32 von 60: Moduliths
  33. Folie 33 von 60: @softarc/eslint-plugin-sheriff
  34. Folie 34 von 60: DEMO
  35. Folie 35 von 60: Micro Frontends
  36. Folie 36 von 60: Micro Frontends
  37. Folie 37 von 60: Micro Frontends Help to
  38. Folie 38 von 60: Integration via Hyperlinks
  39. Folie 39 von 60: UI Composition with Hyperlinks
  40. Folie 40 von 60
  41. Folie 41 von 60
  42. Folie 42 von 60: Integration via Shell
  43. Folie 43 von 60: SPA-based Shell
  44. Folie 44 von 60: Module Federation
  45. Folie 45 von 60: Module Federation
  46. Folie 46 von 60: Sharing Libs
  47. Folie 47 von 60: Alternatives Getting Popular
  48. Folie 48 von 60
  49. Folie 49 von 60: DEMO
  50. Folie 50 von 60: Multi-Framework/
  51. Folie 51 von 60: Not perfect :)
  52. Folie 52 von 60: Result: Best of Both Worlds
  53. Folie 53 von 60: DEMO
  54. Folie 54 von 60: More Details
  55. Folie 55 von 60: Free eBook (6th Edition)
  56. Folie 56 von 60: Costs of
  57. Folie 57 von 60: Micro Frontend Platform Team
  58. Folie 58 von 60: ✓ Domain thinking: also valueable in the frontend
  59. Folie 59 von 60
  60. Folie 60 von 60: [Social Media] Manfred Steyer
Folientext (alle Folien)
  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

Gratis-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.

Zum Gratis-eBook: Micro Frontends & Moduliths with Angular (öffnet in neuem Fenster)