Angular and DDD - A Wonderful Friendship?

15934fa2aa7b2ce21f091e9b7cffa856?s=47 Manfred Steyer
September 10, 2020
200

Angular and DDD - A Wonderful Friendship?

15934fa2aa7b2ce21f091e9b7cffa856?s=128

Manfred Steyer

September 10, 2020
Tweet

Transcript

  1. @ManfredSteyer ManfredSteyer Manfred Steyer, ANGULARarchitects.io Angular and DDD A Wonderful

    Friendship?
  2. None
  3. @ManfredSteyer Sharing Experience for Architectures BEST PRACTICES PATTERNS METHODOLOGY

  4. @ManfredSteyer

  5. @ManfredSteyer

  6. @ManfredSteyer

  7. @ManfredSteyer

  8. @ManfredSteyer Manfred Steyer

  9. @ManfredSteyer

  10. @ManfredSteyer Strategic Design Tactical Design

  11. @ManfredSteyer Strategic Design Tactical Design

  12. @ManfredSteyer

  13. @ManfredSteyer Example e-Procurement System

  14. @ManfredSteyer Catalog Approval Specification Ordering Example Sub-Domains

  15. @ManfredSteyer

  16. @ManfredSteyer Workspace

  17. @ManfredSteyer Advantages No version conflicts No burden with distributing libs

  18. @ManfredSteyer Creating a Workspace npm install -g @angular/cli ng new

    workspace cd workspace ng generate app my-app ng generate lib my-lib ng serve --project my-app ng build --project my-app
  19. @ManfredSteyer Moving back and forth Npm Registry

  20. @ManfredSteyer https://nrwl.io/nx

  21. @ManfredSteyer Visualize Module Structure

  22. @ManfredSteyer Creating a Workspace npm install -g @angular/cli npm init

    nx-workspace myworkspace cd workspace ng generate app my-app ng generate lib my-lib ng serve --project my-app ng build --project my-app
  23. @ManfredSteyer

  24. @ManfredSteyer Catalog Ordering Shared Feature Feature Feature Feature Feature UI

    UI UI UI UI UI UI UI UI Domain Domain Domain Domain Domain Domain Util Util Util Util Util Util Enterprise Monorepo Patterns, Nrwl 2018: https://tinyurl.com/y2jjxld7 @ManfredSteyer Shared Kernel (if really needed) & other libs Smart Comp. Dumb Comp.
  25. @ManfredSteyer Catalog Ordering Shared Feature API Feature Feature Feature Feature

    UI UI UI UI UI UI UI UI UI Domain Domain Domain Domain Domain Domain Util Util Util Util Util Util @ManfredSteyer
  26. @ManfredSteyer Catalog Ordering Shared Feature API Feature Feature Feature Feature

    UI UI UI UI UI UI UI UI UI Domain Domain Domain Domain Domain Domain Util Util Util Util Util Util @ManfredSteyer
  27. @ManfredSteyer Application Domain Model Infrastructure Isolate your domain! Domain e.

    g. data access Use case specific facades, state management (optional) Entities, biz logic
  28. @ManfredSteyer Alternatives to layering • e. g. Hexagonal Architecture, Clean

    Architecture • Anyway: We need to restrict access b/w libraries
  29. @ManfredSteyer DEMO

  30. @ManfredSteyer • • • •

  31. @ManfredSteyer

  32. @ManfredSteyer Booking Boarding Shared Feature Feature Feature Feature Feature …

    … … … … … … … … @ManfredSteyer Flight App Deployment Monolith
  33. @ManfredSteyer Booking Boarding Shared Feature Feature Feature Feature Feature …

    … … … … … … … … Booking App Boarding App Microfrontends
  34. @ManfredSteyer Booking Boarding Shared Feature Feature Feature Feature Feature …

    … … … … … … … … Booking App Boarding App Option 1: One Monorepo Monorepo
  35. @ManfredSteyer Booking Boarding Shared Feature Feature Feature Feature Feature …

    … … … … … … … … Booking App Boarding App Option 2: One Repo per Domain Publish shared libs seperately via npm Repository n Repository 2 Repository 1
  36. @ManfredSteyer Free eBook ANGULARarchitects.io/book Updated for Module Federation and Alternatives

  37. • • • • •

  38. @ManfredSteyer

  39. @ManfredSteyer d Slides & Examples Public: Frankfurt, Munich, Vienna In-House:

    everywhere http://softwarearchitekt.at/workshops