1 / 26

Building Offline/Cache Mode Web Apps Using Sync Framework

Building Offline/Cache Mode Web Apps Using Sync Framework. Mike Clark Group Manager Cloud Data Services Team mikecl@microsoft.com. Agenda. Overview. Why Build Data Caching Apps. Offline/Cached mode apps enjoy lots of value today on- prem Client apps get better UX through

ghalib
Download Presentation

Building Offline/Cache Mode Web Apps Using Sync Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team mikecl@microsoft.com

  2. Agenda Overview

  3. Why Build Data Caching Apps • Offline/Cached mode apps enjoy lots of value today on-prem • Client apps get better UX through • Lower latency – data access doesn’t require round trips • Higher availability – app still runs if server is unreachable • Reduced network utilization – most data access is local • Servers gain better ability to schedule work asynchronously • Benefits of cached mode are magnified on the Internet • Server/service is further away • Network is less tuned/reliable • Provides key aspects for Software+Servicesand 3-Screens & Cloud Remote Store X Messages Local Data Cache 10X Operations Rich client app

  4. Offline / Cache Mode Apps End to End Sync smarts on server, not on client Easy to develop the sync endpoints Simple sync protocol (OData-Sync) Windows Azure Sync FX Sync Endpoints Other Platforms Store Sync Auth / Mgmt / Bus Logic Minimal client & store requirements Sync Sync Sync Client API support . Richer UX & Capabilities Reach Windows Silverlight HTML

  5. Demo 1 MIX Session Planning App

  6. OData Protocol • Standards based • Open web protocol for querying and updating data • Applies HTTP, AtomPub, & JSON to provide open access • Services powering experiences • Lower costs through client tooling • Microsoft increases your reach by adding new clients • Empower your ecosystem building new mashups • Services powering business • Enable your customers with open access • Zero-friction tooling like Excel as a client • Monetize or consume data from Microsoft “Dallas”

  7. Open Data Protocol (OData) Data Clients ExcelPowerPivot .NET Client Silverlight Javascript PHP … Open Data Protocol (AtomPub + EDM) Data Sources Analysis & Reporting ADO.NET SharePoint SQL Server WCF Data & RIA Services SQL Azure Win Azure

  8. Sync for OData • Apply the principals of OData to the problem of data-sync • Support two key client/server relationship patterns

  9. Agenda Sync Application Architecture

  10. Sync Framework Basic Overview Sync Application Configure Configure Sync() Sync Orchestrator changes changes Metadata Interpretation/Manipulation Tools Metadata Interpretation/Manipulation Tools Provider Services Provider Services Sync Provider A Sync Provider B Sync Runtime Logic Sync Runtime Logic Metadata Storage Metadata Storage DataStore A Data Store B changes changes

  11. Offline/Cached Mode Apps on Windows Windows Data Caching Client Cached Mode Application Windows Azure Application WCF Sync Endpoint Sync Orchestrator OData-Sync Endpoint Sync Business Logic Sync Logic SQL Azure Provider SQL Compact SQL Azure Proxy Provider Symmetric OData-Sync Proxy SQL Compact Sync Provider SQL Azure Sync Logic • Client can sync with service or other clients • Server-side business logic by processing provider events • Client monitoring & management possible

  12. Offline/Cached Mode Apps in Silverlight Silverlight Data Caching Client Silverlight Cached Mode Application Windows Azure Application Sync Orchestrator OData-Sync Endpoint Sync Business Logic Sync Logic SQL Azure Provider Asymmetric OData-Sync Proxy Collections Collections Provider Isolated Storage SQL Azure Sync Logic • Sync Logic Moves to Server/Service • Enables Offline In Isolated Storage with Silverlight 3 & 4 • Plug in other stores by building providers

  13. Demo 2 3-Screens MIX Attendee Application on desktop Silverlight and Windows Phone 7 Series

  14. Session Planner App Architecture Offline Clients Browser Clients Silverlight Desktop HTML ASP.NET Desktop Presentation Layer Online OData Clients SQL Data Layer OData Endpoint OData Sync Components Collections OData-Sync Endpoint Sync FX OData-Sync Isolated Storage Windows Phone 7 Series OData-Sync Device Presentation Layer Data Layer • Multiple clients access the same service • Silverlight app for desktop and phone: • Utilize OData-Sync protocol • Cache data for offline operation • Identical code base, except for UI Sync Components Collections Isolated Storage

  15. Offline/Cached Mode Apps On Any Platform Any Platform Data Caching Client Cached Mode Application Windows Azure Application OData-Sync Endpoint Custom Client Sync Controller and Asymmetric OData-Sync Proxy Sync Business Logic Sync Logic SQL Azure Provider Storage SQL Azure • Same basic conceptual model • Capable of any storage available on the platform • Simple code on the client required to plug in

  16. Demo 3 MIX10 Client Code on IPhone

  17. W3C HTML5 Storage • Standard WebApps support in future browsers • Microsoft participating to evolve standard • Perfect place for any client sync support • Possibility of having some end to end support

  18. Agenda Moving Data Where You Need It

  19. Sample End to End Scenario On-Premises Cloud Cached Mode Clients App Client Storage North America North America App Europe Client Storage Europe SQL Server Asia App Client Storage Asia SQL Azure

  20. Getting Data Where You Need It On-premises to cloud continuum • Benefits • Makes cloud extension rather than replacement • Enables moving workload to cloud in stages • New scenarios spanning enterprise and cloud • Preserve investment in existing infrastructure SQL Azure Sync SQL Azure SQL Azure to SQL Azure Sync • Benefits • Scale-out read or read/write • Geo replication of data • Edge network data distribution • Content delivery networks Sync SQL Azure SQL Azure

  21. Agenda Conclusions

  22. Call To Action • Use the demo attendee app • Get the SQL Azure DataSync CTP • Start building apps today • Watch for invitation only CTP for Silverlight coming in next couple of months • Give us your feedback

  23. Resources • Sync Framework MSDN Dev Center • http://msdn.com/sync • Email • michael.r.clark@microsoft.com • Team blog • http://blogs.msdn.com/sync • Forums • http://social.msdn.microsoft.com/Forums/en-US/syncdevdiscussions/threads

  24. © 2010 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.

More Related