• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Unleash Your Domain With Greg Young @ DDD-Day
 

Unleash Your Domain With Greg Young @ DDD-Day

on

  • 1,336 views

 

Statistics

Views

Total Views
1,336
Views on SlideShare
1,293
Embed Views
43

Actions

Likes
4
Downloads
1
Comments
0

2 Embeds 43

http://lanyrd.com 42
http://www.feedspot.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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

    Unleash Your Domain With Greg Young @ DDD-Day Unleash Your Domain With Greg Young @ DDD-Day Presentation Transcript

    • Unleash Your DomainGreg Young
    • Agenda• The Issues• The Breakthroughs – Explicit State Representation – Event Storage – Command Query Separation – Asynchronous Context Mapping• Summary• Questions
    • State transitions are an important part of ourproblem space and should be modeled within our domain.
    • Line Items (n)Purchase Order Shipping Information
    • Shipping Cart 3 Items InformationCreated Added Added
    • AddItemCommand AddItemCommand AddItemCommand Purchase Order ChangeAddressCommand
    • Shipping Cart 3 Items 1Item InformationCreated Added Removed Added
    • 7654321
    • 6 5snap 4 3 2 1
    • Data Storage Domain Domain Object Object Application Services Remote Facade Send up DTO Request DTOStatus returned DTO returned Client
    • DTO Sent Request DTOAck/Nak Response DTO returned Send DTO Back to Show DTO on Server Screen User Interacts With DTO
    • Map DTO from DomainSave Domain Edit DTO in UI Object(s) Map Data from Send DTO to DTO to Domain Server
    • Query DataSave Domain Build Commands Object(s) Domain Validates Send Commands Commands to Domain
    • Data Storage Domain Domain Object Object Thin Read Layer (Direct to DTO) Remote Facade Application Services Remote Facade Message Sent Request DTOAck/Nak Response DTO returned Client
    • Write (Command) Data Storage Read (Query) Domain Domain Object Object Thin Read Layer (Direct to DTO) Remote Facade Application Services Remote Facade Message Sent Request DTOAck/Nak Response DTO returned Client
    • A single model cannot be appropriate for reporting, searching, and transactional behaviors…
    • The model that a client needs the data in adistributed system is screen based and different than the domain model.
    • Most queries can operate with relaxed consistency…
    • Denormalizer Data Storage ------------------- Data Storage Anti CorruptionDomain DomainObject Object Application Services Thin Read Layer (Direct to DTO) Remote Facade Remote Facade Client
    • Getters and Setters are adomain anti-pattern.
    • Most Bounded Contexts can interact with relaxed consistency.
    • Using relaxed consistency allows us to increase our scalability and availability!
    • “Man acts as though he were the shaper andmaster of language, while in fact it is language thatis the master of man.”
    • State transitions are an important part of ourproblem space and should be modeled within our domain.
    • Getters and Setters are a domain smell.
    • Most Bounded Contexts can interact with relaxed consistency.
    • A single model cannot be appropriate for reporting, searching, and transactional behaviors…
    • Questions