Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to build applications using a domain driven architecture


Published on

Our presentation deck from the #GLSEC13 conference on 4/29/2013. Learn how to build modern, scalable and malleable greenfield apps the right way from the beginning.

Published in: Technology
  • Be the first to comment

How to build applications using a domain driven architecture

  1. 1. How to BuildBusinessApplicationsLeveraging aDomain DrivenArchitecture
  2. 2. Who are we?•Brian Anderson• Founded OST project-based App Dev team ( /@OSTgr)• 15+ years business and software development consulting experience• Crowe Chizek• SageStone -> NuSoft - > RCM Technologies• OST• Co-founder of,• Twitter: @brianmatic, Github:•Brian Scaturro• Consultant @OSTgr• Worked for OneUpWeb on the bay in Traverse City• Author of Paratest –• Avid reader and open source developer• Twitter: @scaturr, Github:
  3. 3. OST is headquartered right here in GR
  4. 4. Here we goDevelopinggreenfield apps ishardMost get locked into an architecture that doesntscale and change becomes difficult and slow asthe system grows.
  5. 5. Why does this happen so often?Too many timesapplication architectsfocus on the technicalproblems instead ofdesigning for theproblem domain.“The most significantcomplexity of manyapplications is not technical.It is in the domain itself, theactivity or business of theuser" – Evans
  6. 6. Example Architecture•Tiers• UI• Business• Data Access• Database•Does this architecturerepresent thebusiness?•No…
  7. 7. How to do it right?•Domain Driven Design•Focus on the domain model first.•What the heck is the domain model?• Official definition:• A domain model in problem solving and software engineering isa conceptual model of all the topics related to a specific problem. It describesthe various entities, their attributes, roles, and relationships, plus theconstraints that govern the problem domain•Let us just show you…
  8. 8. Let’s Model• Idea =• Wireframes• Domain Model
  9. 9. Onion Architecture•The domainmodel is thecore.•Build yourarchitecturearound it.
  10. 10. OST Open Source Contributions•nDriven•.Net-based••nDriven CLI – command line interface for creatinga nDriven boilerplate project.••Driven•PHP-based•
  11. 11. Let’s code it• nDriven – Baseline Onion Architecture Project• Setup a new project• Develop the domain model• Look at how easy it is to interact with• Make the domain model persist to a db in the Infrastructure layer• DB schema• Create a DB through a migration• Map models to DB• Leverage the Repository design pattern• Finally, build the Presentation layer• Develop against the domain model• Use an MVC framework• Users expect modern client side interactions• It has to have a responsive design that works on all devices
  12. 12. Want our code?•Reference sample application•OST Todo’s••Great reference for• .Net MVC 4• Angular JS – Javascript MV-Whatever• Bootstrap• Built on nDrive
  13. 13. Q&AThank You