Presentation is loading. Please wait.

Presentation is loading. Please wait.

Connect with life www.connectwithlife.co.in Janakiram MSV Sr. Technology Strategist | MS India Development Center Siddharth Jagtiani Sr. Program Manager.

Similar presentations


Presentation on theme: "Connect with life www.connectwithlife.co.in Janakiram MSV Sr. Technology Strategist | MS India Development Center Siddharth Jagtiani Sr. Program Manager."— Presentation transcript:

1 Connect with life www.connectwithlife.co.in Janakiram MSV Sr. Technology Strategist | MS India Development Center Siddharth Jagtiani Sr. Program Manager | MS India Development Center

2 Agena The need for memory cache Key scenarios for using memory cache Introducing “Project Velocity” “Project Velocity” features How do I use “Project Velocity”?

3 The Need For Memory Cache Evolving Application Requirement s Underlying Hardware Trends Evolving Application Architecture s Evolving Business Requirement s

4 Key Scenaros for Memory Cache Reference Data Frequently accessed data Read-only Activity Data Data is generated from an activity Read-Write Will “retire” at the end of activity Resource Data Close to the data tier Concurrent Read-Write operations

5 Caching Reference Data Web Tier Clients Local Cache (in Proc) Distributed Cache Servers Distributed Cache Servers Data Tier Usernames, Name-> ID Mapping Usernames, Name-> ID Mapping Friend Lists Usernames Friend Lists Usernames Scenario: Social Networking

6 Caching Activity-Oriented Data Data Tier Application Tier Distributed Cache Integration Hub Integration Hub Clients Web Tier Vendor services Pricing Vendor Sources Order, Invoice, Payment Order, Invoice, Payment Aggregated Vendor Catalogs Aggregated Vendor Catalogs Scenario: Enterprise LOB Application

7 Caching Resource-Oriented Data Scenario: Flight Inventory and Pricing Application Tier Distributed Cache Flight Itinerary Flight Itinerary Flight Segment Flight Price Flight Segment Flight Price Airlines Seat Inventory Booking Service

8 What is "Project Velocity"? Unified Cache View An explicit, distributed, in-memory application cache for all kinds of data (CLR objects, rows, XML, Binary data etc.) Fuse "memory" across machines into a unified cache Clients can be spread across machines or processes Clients Access the Cache as if it was a large single cache Cache Layer distributes data across the various cache nodes

9 Where Does It Fit? … Application / Web Tier Application UsersUsers DatabaseDatabase CloudCloud Data Tier Application Velocity Client Local Cache Server 1 Server 2 Server 3 Velocity Service Server Side Callbacks Cache Tier

10 Installing Velocity

11 "Velocity" Concepts Host Physical processes hosting Velocity instance. Named Caches Can span across machines Defined in the configuration file Regions Physically co-located Container of Cache Items May be implicit or explicitly created Cache Item Key, Payload (Object ), Tags, TTL, Timestamps, Version Regions Region A Key Payload Tags 121 xxxx “Toy” “Child” 123 yyyy “Toy” “Chair”.. Machine -> Cache Host -> Named Caches -> Regions -> Cache Items -> Objects Velocity Service Named Cache : Product Catalog Named Cache : Electronics Inventory Velocity Service

12 Example Usage Of Velocity API // Create instance of cachefactory (reads appconfig) CacheFactory fac = new CacheFactory(); // Get a named cache from the factory Cache catalog = fac.GetCache("catalogcache"); // Simple Get/Put catalog.Put("toy-101", new Toy("Puzzle",.,.)); // From the same or a different client Toy toyObj = (Toy)catalog.Get("toy-101"); // Simple Get/Put catalog.Put("toy-101", new Toy("Puzzle",.,.)); // From the same or a different client Toy toyObj = (Toy)catalog.Get("toy-101"); // Region based Get/Put catalog.CreateRegion("toyRegion"); // Both toy and toyparts are put in the same region catalog.Put("toyRegion", "toy-101", new Toy(.,.)); Catalog.Put("toyRegion", "toypart-100", new ToyParts(…)); Toy toyObj = (Toy)catalog.Get("toyRegion", "toy-101"); // Region based Get/Put catalog.CreateRegion("toyRegion"); // Both toy and toyparts are put in the same region catalog.Put("toyRegion", "toy-101", new Toy(.,.)); Catalog.Put("toyRegion", "toypart-100", new ToyParts(…)); Toy toyObj = (Toy)catalog.Get("toyRegion", "toy-101");

13 Velocity API

14 "Velocity" for ASP.NET Developers Compliment the ASP.NET Cache object Delegate Caching to Velocity Move Session state from InProc to Velocity

15 Real World Scenario – DVD Rental App ASP.NET Session in Velocity

16 June 2008 (CTP1) (TechEd 2008) Oct 2008 (CTP2) (PDC 2008) CTP3 (Mix 2009) Mid 2009 RTM Schedule Distributed, partitioned cache service Regions, Tags Local CacheASP.Net Integration AvailabilityConfiguration Options Powershell Bulk Access APIsSecurity Read-Through/Write-BehindCache Event Notifications

17 Summary Make it availableMake it fasterScale your app Velocity

18 References Project Velocity on MSDN http://msdn.microsoft.com/data Team Blog http://blogs.msdn.com/velocity/

19 Feedback / QnA Your Feedback is Important! Please take a few moments to fill out our online feedback form For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx Or email us at vtd@microsoft.com Use the Question Manager on LiveMeeting to ask your questions now!

20

21 © 2007 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.


Download ppt "Connect with life www.connectwithlife.co.in Janakiram MSV Sr. Technology Strategist | MS India Development Center Siddharth Jagtiani Sr. Program Manager."

Similar presentations


Ads by Google