• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
819
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
7
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    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

Transcript

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