Udi Dahan – The Software Simplist Session Code: ARC 304.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Taylor Brown Test Lead Microsoft Corporation ES09.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Scott myKB.com, Inc. Session Code: DEV301r.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Announcing Demo Announcing.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
 Paul Vick Principal Architect Microsoft Corporation  Lucian Wischik Software Engineer Microsoft Corporation.
Bhushan NeneGrzegorz Gogolowicz Principal ArchitectSenior ArchitectMicrosoft Session Code: DEV304.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

customer.
Jeff King Senior Program Manager Microsoft Session Code: WIA204.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
SESSION CODE: ARC302 Udi Dahan – The Software Simplist Enterprise Development Expert & SOA Specialist.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sara Ford Program Manager Microsoft Corporation DPR301.

Luke Hoban Senior Program Manager Microsoft Session Code: DTL319.
Scott Morrison Program Manager Microsoft Corporation Session Code: WUX308.
6/26/2018 9:02 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
9/11/2018 5:53 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Tech·Ed North America /14/2018 7:13 PM
Sysinternals Tutorials
11/22/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Jason Zander Unplugged
Title of Presentation 12/2/2018 3:48 PM
High Availability: A Contrarian View
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
12/5/2018 3:24 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Ben Robb MVP, SharePoint Server cScape Ltd Session Code: OFS207
12/27/ :01 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Data Driven ASP.NET Web Forms Applications Deep Dive
Tech·Ed North America /17/2019 1:47 AM
Brian Keller Sr. Technical Evangelist Microsoft Session Code: DEV310
2/16/2019 8:43 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Peter Provost Sr. Program Manager Microsoft Session Code: DEV312
Building Silverlight Apps with RIA Services
Building SaaS Solutions on Windows Azure
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Math Chapter 2 Lessons 2.1, 2.3, and 2.4
TechEd /28/2019 7:58 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /25/ :53 PM
Hack-proofing your Clients using Windows 7 Security!
Шитманов Дархан Қаражанұлы Тарих пәнінің
Lap Around the Windows Azure Platform
Code First Development in Microsoft ADO.NET Entity Framework 4.1
Title of Presentation 5/24/2019 1:26 PM
What’s New in Visual Studio 2012 for Web Developers
Presentation transcript:

Udi Dahan – The Software Simplist Session Code: ARC 304

What will you see here? Distributed Systems Architecture UI Design Domain Model What won’t you see here? Code

Distributed Systems Architecture

Common Distributed Architecture DB

Let’s deal with the obvious…

Collaboration is good – isn’t it ? Get data Change data User is looking at stale data

So why go through all the layers? DB Cache

Why transform between tiers? Use EF to map from tables to domain objects Map from DTOs and WS to domain object Map from DTOs & WS to view model DB WSWS UIUI Cache

What was the point of all this again?

Queries – showing data to the user

Why not be upfront about it? Data correct as of 10 minutes ago List of customers

Only data, no behavior: not an object

Keep it simple - 2-Tier Persistent View Model UIUI Query only For each view in the UI, have a view in the DB

Incrementally add from there

Commands – accepting user input

Can we fully trust users decisions?

Validation and Business Rules Validation: Is the input potentially good? Structured correctly? Ranges, lengths, etc Rules:Should we do this? Based on the current system state What the user saw is irrelevant

Command Processing Layers DB

TransactionTransaction Command Processing Tiers DB WSWS InputInput ValidationValidation ValidationValidation Command Get current state RulesRules Persist

Should we do what the user asks?

User Interface Design

Traditional User Interfaces IDTotalDateShippedAccountetc 317$37.871/9/09YesA17T5 318$99.993/7/09YesA17T5 319$ /8/09YesP313Z 320$69.479/9/09NoP599Z Orders CancelCancelSaveSave

Capturing user intent Why is it important? Differentiating between: Correcting a mistyped shipping address The user moved – reroute shipments underway Sometimes users accidentally modify fields when tabbing between columns

Reservation systems

Not capturing user intent In a traditional UI – what we have is the checkbox Why do users select multiple seats? Because they’re reserving for a family / friends But then, concurrency happens Somebody else got in first on one of the seats Try to find a block of seats somewhere else

Capturing user intent Group reservation: Small group – sitting together Large group – several small groups Enter number of people Enter preferred seat type – indicates cost System s back when reservation can be filled Include waiting list functionality

Usability benefits More users get what they want with less clicks

Scalability benefits Thousands of seats, hundreds of thousands of requests No need to show actual status

Revisiting the command

What’s a good command? The kind you can reply with: “Thank you. Your confirmation will arrive shortly” Inherently asynchronous Not really related to an entity

Commands versus Entities It’s easier to validate the command Less data More specific Is this potentially good Validating large entities is complex

Domain Models

What aren’t they for? Validation Commands are validated before the domain model is called Queries Entity relationships for reading are unnecessary

What are they for? Answering the question: Should I do what this valid command is asking? If the answer is yes, change its state

Putting it all together

QueriesQueries CommandsCommands DB WSWS InputInput ValidationValidation ValidationValidation RulesRules View Model QueriesQueries

QueriesQueries CommandsCommands DB WSWS InputInput ValidationValidation ValidationValidation RulesRules QueriesQueries For better scalability, add pub/sub View Model CacheUpdaterCacheUpdater Publish

Summary

Keep queries simple – 2-Tier if possible No data transfer objects Have commands reflect user intent Adjust UI design to capture intent Get the benefits of asynchronous programming Simple validation, focused business rules

Thank you Udi Dahan – The Software Simplist Enterprise Development Expert & SOA Specialist

Sessions On-Demand & Community Resources for IT Professionals Resources for Developers Microsoft Certification & Training Resources Resources Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online.

Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Required Slide