• Save
Strategischer Anwendungsentwurf mit Domain-Driven Design
Upcoming SlideShare
Loading in...5
×
 

Strategischer Anwendungsentwurf mit Domain-Driven Design

on

  • 478 views

Presented at dotnet-zentral.ch on March 18th 2013 by Dennis Traub

Presented at dotnet-zentral.ch on March 18th 2013 by Dennis Traub

Statistics

Views

Total Views
478
Views on SlideShare
478
Embed Views
0

Actions

Likes
1
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Strategischer Anwendungsentwurf mit Domain-Driven Design Strategischer Anwendungsentwurf mit Domain-Driven Design Presentation Transcript

  • Strategischer Anwendungsentwurf mit Domain-Driven Design presented by Dennis Traub .NET Usergroup Zentralschweiz - 18. März 2013Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Now, who‘s that guy? Dennis Traub Founder, Owner, CEO, Single Employee of D. Traub Software Development Consultancy Consultant, developer, trainer, speaker 39 years old Married, father of one 20+ years in software development Hire me at mail@dennistraub.de @dtraubDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Break Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • The „Blue Book“ by Eric Evans Image PlaceholderDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • The „Blue Book“ by Eric Evans • Entities • Value Objects Tactical • Aggregates Class • Repositories Design • Services • Factories • etc. It should be two books! • Model Integrity • Large-Scale Structure • Bounded Contexts Strategic • Core Domain DDD • Context Maps • Ubiquitous Language • etc.Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • DomainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Domain a sphere of knowledge, influence, or activityDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Domain what an organization does and the world it does it inDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Domain ModelDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Domain Model a system of abstractions that describes selected aspects of a domainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Domain Model can be used to solve problems related to that domainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • don‘t model realityDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • we model useful abstractions of realityDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ubiquitous LanguageDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ubiquitous Language a language structured around the domain modelDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ubiquitous Language used by all team membersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Bounded ContextDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Bounded Context an explicit boundary within which a domain model existsDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Bounded Context inside the boundary all terms have specific meaningDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Bounded Context these terms are part of the context‘s ubiquitous languageDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • SubdomainsDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Subdomains the whole domain of the organization is comprised of subdomainsDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Subdomains they focus on only one specific area of the whole business domainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Core DomainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Core Domain the distinctive part of the model, central to the users‘ goalsDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Core Domain differentiates the application and makes it valuableDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Core Domain the most important subdomainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Our Domain:Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AviationDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Our Application:Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ambulance Flight ManagementDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ambulance Flight Management order flights from an operator dispatch patients assign medical staffDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Bounded Contexts 1 Patiententransport-Disposition 2 Flugplanung und -durchführung 3 Personaleinsatzplanung (Flugärzte, Rettungsassistenten) 4 Patientendaten, Abrechnung, Buchhaltung 5 SOAP- oder REST-Services, Web-OberflächeDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Subdomains 1 Ambulanzflug-Disposition 6 Bodentransport 2 Flotten-Management 7 Abrechnung, Buchhaltung 3 Flugplanung 8 Anwendungsoberfläche 4 Passagier-/Patientendaten 9 SOAP-/REST-Schnittstelle 5 Medizinisches Personal 10 Benutzer- und ZugriffssteuerungDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • don‘t build a model that works for everyoneDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • to focus our effort and resources we ask two questions for each subdomainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • 1 how complex is it?Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • 2 what‘s the value to our specific problem? (if we model it ourselves)Dennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • 1. Complexity (S/M/H) 1 Ambulanzflug-Disposition 6 Bodentransport 2 Flotten-Management 7 Abrechnung, Buchhaltung 3 Flugplanung 8 Anwendungsoberfläche 4 Passagier-/Patientendaten 9 SOAP-/REST-Schnittstelle 5 Medizinisches Personal 10 Benutzer- und ZugriffssteuerungDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • 2. Value (S/M/H) 1 Ambulanzflug-Disposition 6 Bodentransport 2 Flotten-Management 7 Abrechnung, Buchhaltung 3 Flugplanung 8 Anwendungsoberfläche 4 Passagier-/Patientendaten 9 SOAP-/REST-Schnittstelle 5 Medizinisches Personal 10 Benutzer- und ZugriffssteuerungDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • the tactical Building Blocks we don‘t use DDD when there is no value in formalizing the problemDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • we only use DDD in parts where we get a competitive advantageDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • 15 minutes BREAKDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Presentation Layer Common Services Infrastructure Application Services Domain / Business Model / BLL DAL / O/R-MapperDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Ports & Adapters Hexagonal Architecture Onion ArchitectureDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Dependency Inversion Principle (just in case) the D in SOLIDDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • EntityDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Entity an object primarily defined by its identityDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Entity has a life cycle that can radically change its form and contentDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Value ObjectDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Value Object an object that represents a descriptive aspect of the domainDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Value Object doesn‘t have a distinct identity treated as immutableDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AggregateDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Aggregate a cluster of associated objectsDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Aggregate treated as a unit for the purpose of data changesDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Aggregate a set of consistency rules applies within the aggregate‘s boundariesDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • Aggregate enforces its own invariants and is always in a valid stateDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • AGENDAThe Blue Book An Example Tactical Patterns Actually it should Bounded Contexts A short review of be two books! and Subdomains the Building Blocks 1 2 3 4 5 6 Terminology Lasagna End of Strategic Design … the new Spaghetti Questions & AnswersDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • To summarize: DDD is basically the application of the SOLID principles of object-orientation on an architectural levelDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • ? QUESTIONSDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de
  • THANK YOU! follow me: @dtraubDennis Traub – Software Development Consultancy @dtraub – mail@dennistraub.de