Ria architecture

1,107 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,107
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Identify users needsGet data on demandGet a lot of data firstData in the CloudLocal storage HTML5, Silverlight etc.
  • Presenation Layer
  • Common language on client and server side to make it easy to maintain business logic.Silverlight uses .Net, ASP.Net uses javaScript and .Net languages.Trying to solve so we can write server-side code and it will generate client-side code for us
  • Communication
  • Async. Communication to not lock UI-threads
  • Common problems. Foto: Morgan Norman/Söderberg 
  • DOS Attacks – to manny calls from one client
  • Too much data passed over the wire
  • DTOData ContractJSONXMLRSSATOMHTML
  • Is a lightweight text-based open standard designed for human-readable data interchange.
  • Demo on using JSON with ASP.NET MVC and WCF Services
  • Demo on using JSON with ASP.NET MVC and WCF Services
  • Det kan vara svårt ibland vad man ska välja mellan MVC och WCF med tanke på att båda kan skicka JSON data, vill ni veta lite mer om detta så gå på MVC 3 och HTML5 dragningen i eftermiddag.
  • A Common Architecture
  • Domain Model is not designed with presentation in mind
  • Data contract. Tänker till en extra gång över vilken data som ska skickas....
  • DEMO – Skapa data kontrakt, sedan visa output och input models i MVC 3
  • Ria architecture

    1. 1. RIA Architecture”det finns faktiskt ett nätverk mellan klient och Server!”<br />Fredrik Normén – Squeed<br />I’m a Squeeder<br />@fredrikn<br />http://weblogs.asp.net/fredrik.normen<br />
    2. 2.
    3. 3.
    4. 4.
    5. 5.
    6. 6. +<br />+<br />
    7. 7. Web<br />Applications<br />Desktop<br />Applications<br />RIA<br />Communication<br />Technologies<br />
    8. 8.
    9. 9.
    10. 10.
    11. 11.
    12. 12.
    13. 13.
    14. 14.
    15. 15. HTML5 JavaScript AJAX<br /> HTML JSON Web Services<br /> jQuery Silverlight<br /> Flash REST<br />GWT Mobile WCF Service<br />WCF RIA Services DTO ViewModel<br /> Presentation Model<br />
    16. 16. No business logic on the client!<br />
    17. 17.
    18. 18.
    19. 19. Service/Application Layer<br />Domain Model<br />
    20. 20.
    21. 21.
    22. 22.
    23. 23.
    24. 24. Foto: Morgan Norman/Söderberg <br />
    25. 25.
    26. 26.
    27. 27. Bla bla...<br />Bla bla...<br />Ops ops...<br />Bla bla...<br />Bla bla...<br />
    28. 28. Client technologies<br />
    29. 29. Server technologies<br />
    30. 30. 0110100011110011100110110111001110011110111011<br />1111100110100001010110101000011101010111001101<br />1001010101010010100010101010101000100001111111<br />1010100101010101010111010010000101010111111110<br />1011111010101110101010111101011111001110101110<br />1111101111111111111111111111000101101111101110<br />
    31. 31.
    32. 32. var customer = <br />{<br />"firstName": "John",<br />"lastName": "Smith",<br />"age": 25,<br />"address":<br /> {<br /> "streetAddress": "21 2nd Street",<br />"city": "New York",<br /> "state": "NY",<br /> "postalCode": "10021”<br />}<br />}<br />
    33. 33.
    34. 34. DEMO<br />Using JSON with ASP.NET MVC and WCF Service<br />
    35. 35. ACT 3<br />DTO, Presenation Model, Data Contract, View Model<br />
    36. 36. Network<br />Services<br />Client<br />Domain Model<br />
    37. 37.
    38. 38.
    39. 39.
    40. 40.
    41. 41.
    42. 42. Output and input may be different<br />
    43. 43. More()<br />SearchText<br />SelectedCustomer<br />Search()<br />Add()<br />Save()<br />Customers<br />CreateNew()<br />Remove()<br />
    44. 44.
    45. 45. DEMO<br />Creating a ”Presentation Model” with Data Contract<br />ASP.Net MVC and ”Presentation Model”<br />
    46. 46.
    47. 47. Small amount of data<br />Try to keep business logic on server side <br />There are different communication ways<br />
    48. 48. www.forkcan.com<br />
    49. 49. www.swenug.se<br />
    50. 50. Fredrik Normén<br />I’m a Squeeder<br />@fredrikn<br />fredrik.normen@squeed.com<br />www.squeed.com<br />http://weblogs.asp.net/fredrik.normen<br />
    51. 51. Betygsätt sessionen...<br />

    ×