Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Introduction to Domain-Driven Design at ConFoo

An Introduction to Domain-Driven Design at ConFoo

A five minute lightning talk delivered at ConFoo.

Bradley Holt

February 26, 2016
Tweet

More Decks by Bradley Holt

Other Decks in Technology

Transcript

  1. ConFoo Bradley Holt, Developer Advocate Friday, February 26, 2016 An

    Introduction to Domain-Driven Design @BradleyHolt
  2. Domain Layer Order Aggregate @BradleyHolt Order - id : int

    - customer : Customer - date : Date - lineItems : LineItem[1..*] + total() : Money «interface» OrderRepository + insertOrder(order:Order) + updateOrder(order:Order) + findOrderById(id:int) : Order + recentOrders([limit:int]) : Order[0..*] Customer LineItem … Infrastructure Layer … InMemoryOrderRepository + insertOrder(order:Order) + updateOrder(order:Order) + findOrderById(id:int) : Order + recentOrders(limit:int) : Order[0..*] RelationalMapperOrderRepository + insertOrder(order:Order) + updateOrder(order:Order) + findOrderById(id:int) : Order + recentOrders(limit:int) : Order[0..*]
  3. Image Credits §  IMG_2619 by Jason Pelletier, on Flickr <https://flic.kr/p/k7Mp2C>

    §  Sounds_of_Complexity11.jpg by Enzo Varriale, on Flickr <https://flic.kr/p/4pC77a> §  model by MaZzuk, on Flickr <https://flic.kr/p/3fUREM> §  taking the subway to find the rents by Eli Duke, on Flickr <https://flic.kr/p/2z4udd> §  DSC_3407 by Mad House Photography, on Flickr <https://flic.kr/p/7EUfbx> §  red numbers by DaveBleasdale, on Flickr <https://flic.kr/p/6hkJWo> §  Social graph by Dmitry Grigoriev, on Flickr <https://flic.kr/p/fnzLPk> §  Catalog. by Adam Mayer, on Flickr <https://flic.kr/p/282Bh> @BradleyHolt