The Need For Speed - NEBytes

Phil Pursglove
Phil PursgloveSoftware Developer at WSP Group
The Need For Speed
             A Developer’s Guide to
             Distributed Caching with
                Velocity AppFabric

Phil Pursglove
@philpursglove
http://philpursglove.blogspot.com
http://www.philippursglove.com/Velocity
Agenda
•   What is AppFabric?
•   Why a Distributed Cache?
•   Configuring a client
•   Configuring a server
•   Managing a cache
•   Concurrency
•   High availability / load balancing
Caching Review
• .NET 1.1
  – ASP.NET Cache
• .NET 2.0
  – SqlCacheDependency
  – Enterprise Library Caching Application
    Block

• .NET 4.0
  – System.Runtime.Caching assembly
  – AppFabric
What is AppFabric?
• A combination of two projects:
   – A distributed cache
       • One logical cache shared across a number of physical
         servers
       • Already being used by:
            – MSDN Forums
            – Xbox Live
            – MSN
       • A session state provider
       • In .NET 4.0, a cache provider
   – A workflow host


• Beta 2 Refresh released 26th April 2010
   – Servers must be .NET 4.0, clients can be .NET 3.5/4.0
• v1 by 30th June 2010
Why a Distributed Cache?
• Bigger cache
  – Many physical servers contribute to one
    logical cache
• High availability
  – Multiple servers = fault tolerance
• Increased throughput
  – Many servers available to fulfil requests
Terminology
• Cluster
  – A number of servers running Velocity
  – Not related to Windows clustering
• Cache
  – A named cache on a cluster
• Region
  – A named part of a cache associated to a
    single server
What Data Can I Cache In
         AppFabric?
• Any serializable .NET object
  – Reference Data (Shared Read)
     • e.g. Product categories
  – Activity Data (Exclusive Write)
     • e.g. Shopping Basket
  – Resource Data (Read and Write)
     • e.g. product stock data
Configuring the AppFabric
           Client
• Two assembly references to add:
  – Microsoft.ApplicationServer.Caching.Client.dll
  – Microsoft.ApplicationServer.Caching.Core.dll
• Cache hosts can be hard-coded or in
  web.config/app.config
• Clients
  – Routing vs Simple
  – Local caches
Using AppFabric 1
• Add/Remove

• Concurrency
  – Optimistic
  – Pessimistic
Using AppFabric 2
• Regions
  – Live inside a cache
  – Tie a group of cached objects to a specific node
    
  – But adds extra options (Tags) for retrieving the
    object 
Configuring an AppFabric
            Server
• Cluster configuration can be held:
  – On a network share (XML Provider)
  – In a SQL Server DB (SQL Provider)


• Integrated Security only 
  – AppFabric servers must be inside a
    domain
Managing An AppFabric
         Cluster
• Powershell integration
  – Can start/stop a whole cluster or
    individual servers
  – Create new named caches
     • But not regions 
  – Get cache statistics


• MDCAdmin tool
  – WPF app sitting on top of Powershell
Summary
• Velocity is going to be great
  … in v2 


• v1 is worth looking at as a session
  state provider
  – The end of sticky load-balancing 
AppFabric Launch Event
• Tomorrow afternoon 1630-1730
• Launch event for Windows Server
  AppFabric and Windows Azure
  AppFabric
• Visit http://www.appinfrastructure.com
  for details
Questions?




phil@philippursglove.com
http://philpursglove.blogspot.com
http://www.philippursglove.com/Velocity
@philpursglove
http://slideshare.net/philpursglove
References
•   Documentation on MSDN
     – http://tinyurl.com/msdnappfabric
•   Velocity team blog
     – http://blogs.msdn.com/velocity
     – http://blogs.msdn.com/endpoint
• AppFabric blog for IT Pros
     – http://blogs.technet.com/appfabric/
•   TechEd videos
     – http://tinyurl.com/velocityteched
•   Mix 09 video
     – http://tinyurl.com/velocitymixvideo
• Mix 10 video
     – http://tinyurl.com/velocitymix10video
•   ARCCast Video
     – http://tinyurl.com/velocityscotthavideo
•   ScottHa on Velocity
     – http://tinyurl.com/velocityhanselminutes
• Deep Fried Bytes on AppFabric
     – http://tinyurl.com/deepfriedappfabric
References
• AppFabric coverage on StackOverflow
   – http://tinyurl.com/stackoverflowvelocity
   – http://tinyurl.com/stackoverflowappfabric

• DotNetRocks
   – http://tinyurl.com/dotnetrocksappfabric

• Other .NET distributed caches
   –   NCache - http://tinyurl.com/ncache
   –   Memcached - http://tinyurl.com/smoe
   –   Oracle Coherence – http://tinyurl.com/oraclecoherence
   –   SharedCache – http://codeplex.com/sharedcache

• Extensions Project
   – http://tinyurl.com/mscacheext

• Admin Tool
   – http://mdcadmintool.codeplex.com/
1 of 17

Recommended

Kafka for Microservices – You absolutely need Avro Schemas! | Gerardo Gutierr... by
Kafka for Microservices – You absolutely need Avro Schemas! | Gerardo Gutierr...Kafka for Microservices – You absolutely need Avro Schemas! | Gerardo Gutierr...
Kafka for Microservices – You absolutely need Avro Schemas! | Gerardo Gutierr...HostedbyConfluent
661 views22 slides
Building & Testing Scalable Rails Applications by
Building & Testing Scalable Rails ApplicationsBuilding & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applicationsevilmike
1.5K views27 slides
Cloudsolutionday 2016: Getting Started with Severless Architecture by
Cloudsolutionday 2016: Getting Started with Severless ArchitectureCloudsolutionday 2016: Getting Started with Severless Architecture
Cloudsolutionday 2016: Getting Started with Severless ArchitectureAWS Vietnam Community
290 views28 slides
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress by
Surati Tech Talks 2022 / Build reliable Svelte applications using CypressSurati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Surati Tech Talks 2022 / Build reliable Svelte applications using CypressMaurice De Beijer [MVP]
124 views33 slides
Cloudsolutionday 2016: DevOps workflow with Docker on AWS by
Cloudsolutionday 2016: DevOps workflow with Docker on AWSCloudsolutionday 2016: DevOps workflow with Docker on AWS
Cloudsolutionday 2016: DevOps workflow with Docker on AWSAWS Vietnam Community
644 views42 slides
Docker in the Cloud by
Docker in the CloudDocker in the Cloud
Docker in the CloudSascha Möllering
865 views48 slides

More Related Content

What's hot

Nginx conference 2015 by
Nginx conference 2015Nginx conference 2015
Nginx conference 2015ING-IT
2.1K views58 slides
Mutating Admission Webhook creation by
Mutating Admission Webhook creationMutating Admission Webhook creation
Mutating Admission Webhook creationVictor Morales
150 views26 slides
DevOpsCon Cloud Workshop by
DevOpsCon Cloud Workshop DevOpsCon Cloud Workshop
DevOpsCon Cloud Workshop Sascha Möllering
679 views61 slides
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar by
Kubernetes for Serverless  - Serverless Summit 2017 - Krishna KumarKubernetes for Serverless  - Serverless Summit 2017 - Krishna Kumar
Kubernetes for Serverless - Serverless Summit 2017 - Krishna KumarCodeOps Technologies LLP
7.2K views34 slides
Meetup #3: Migrate a fast scale system to AWS by
Meetup #3: Migrate a fast scale system to AWSMeetup #3: Migrate a fast scale system to AWS
Meetup #3: Migrate a fast scale system to AWSAWS Vietnam Community
233 views42 slides
GDL OpenStack Community - Openstack Introduction by
GDL OpenStack Community - Openstack IntroductionGDL OpenStack Community - Openstack Introduction
GDL OpenStack Community - Openstack IntroductionVictor Morales
2.8K views20 slides

What's hot(20)

Nginx conference 2015 by ING-IT
Nginx conference 2015Nginx conference 2015
Nginx conference 2015
ING-IT2.1K views
Mutating Admission Webhook creation by Victor Morales
Mutating Admission Webhook creationMutating Admission Webhook creation
Mutating Admission Webhook creation
Victor Morales150 views
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar by CodeOps Technologies LLP
Kubernetes for Serverless  - Serverless Summit 2017 - Krishna KumarKubernetes for Serverless  - Serverless Summit 2017 - Krishna Kumar
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar
GDL OpenStack Community - Openstack Introduction by Victor Morales
GDL OpenStack Community - Openstack IntroductionGDL OpenStack Community - Openstack Introduction
GDL OpenStack Community - Openstack Introduction
Victor Morales2.8K views
Stateful Applications On the Cloud: A PayPal Journey by Tesora
Stateful Applications On the Cloud: A PayPal JourneyStateful Applications On the Cloud: A PayPal Journey
Stateful Applications On the Cloud: A PayPal Journey
Tesora435 views
Serverless framework on kubernetes by inwin stack
Serverless framework on kubernetesServerless framework on kubernetes
Serverless framework on kubernetes
inwin stack370 views
Webcast - Making kubernetes production ready by Applatix
Webcast - Making kubernetes production readyWebcast - Making kubernetes production ready
Webcast - Making kubernetes production ready
Applatix1.5K views
Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4 by Outlyer
Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4
Brendon Foxen (Channel 4) - Speeding up Software Delivery at Channel 4
Outlyer497 views
Securing the Message Bus with Kafka Streams | Paul Otto and Ryan Salcido, Raf... by HostedbyConfluent
Securing the Message Bus with Kafka Streams | Paul Otto and Ryan Salcido, Raf...Securing the Message Bus with Kafka Streams | Paul Otto and Ryan Salcido, Raf...
Securing the Message Bus with Kafka Streams | Paul Otto and Ryan Salcido, Raf...
HostedbyConfluent1.1K views
2011 Essex Summit: Openstack/Hyper-V clouds by ppouliot
2011 Essex Summit: Openstack/Hyper-V clouds2011 Essex Summit: Openstack/Hyper-V clouds
2011 Essex Summit: Openstack/Hyper-V clouds
ppouliot1.2K views
Look how easy it is to go from events to blazing-fast analytics! | Neha Pawar... by HostedbyConfluent
Look how easy it is to go from events to blazing-fast analytics! | Neha Pawar...Look how easy it is to go from events to blazing-fast analytics! | Neha Pawar...
Look how easy it is to go from events to blazing-fast analytics! | Neha Pawar...
HostedbyConfluent305 views
Deploying Flink on Kubernetes - David Anderson by Ververica
 Deploying Flink on Kubernetes - David Anderson Deploying Flink on Kubernetes - David Anderson
Deploying Flink on Kubernetes - David Anderson
Ververica 2K views
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A... by Henning Jacobs
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Henning Jacobs1.9K views
OpenStack Management at Hyperscale by Tesora
OpenStack Management at HyperscaleOpenStack Management at Hyperscale
OpenStack Management at Hyperscale
Tesora399 views
Consolidating services with middleware - NDC London 2017 by Christian Horsdal
Consolidating services with middleware - NDC London 2017Consolidating services with middleware - NDC London 2017
Consolidating services with middleware - NDC London 2017
Christian Horsdal304 views

Viewers also liked

παρουσιαση προϊοντοσ με Dvd by
παρουσιαση προϊοντοσ με Dvdπαρουσιαση προϊοντοσ με Dvd
παρουσιαση προϊοντοσ με DvdPeaca and Glory
187 views97 slides
Twitter and the Australian Election 2010 by
Twitter and the Australian Election 2010Twitter and the Australian Election 2010
Twitter and the Australian Election 2010Matthew Gain
796 views11 slides
The Need For Speed - NxtGen Cambridge by
The Need For Speed - NxtGen CambridgeThe Need For Speed - NxtGen Cambridge
The Need For Speed - NxtGen CambridgePhil Pursglove
413 views19 slides
Tweet reach its_k_isabella by
Tweet reach its_k_isabellaTweet reach its_k_isabella
Tweet reach its_k_isabellaMatthew Gain
2.4K views100 slides
Remembering Amber by
Remembering  AmberRemembering  Amber
Remembering AmberHolly.Cairell
283 views73 slides
Crystal MEF by
Crystal MEFCrystal MEF
Crystal MEFPhil Pursglove
695 views10 slides

Viewers also liked(6)

παρουσιαση προϊοντοσ με Dvd by Peaca and Glory
παρουσιαση προϊοντοσ με Dvdπαρουσιαση προϊοντοσ με Dvd
παρουσιαση προϊοντοσ με Dvd
Peaca and Glory187 views
Twitter and the Australian Election 2010 by Matthew Gain
Twitter and the Australian Election 2010Twitter and the Australian Election 2010
Twitter and the Australian Election 2010
Matthew Gain796 views
The Need For Speed - NxtGen Cambridge by Phil Pursglove
The Need For Speed - NxtGen CambridgeThe Need For Speed - NxtGen Cambridge
The Need For Speed - NxtGen Cambridge
Phil Pursglove413 views
Tweet reach its_k_isabella by Matthew Gain
Tweet reach its_k_isabellaTweet reach its_k_isabella
Tweet reach its_k_isabella
Matthew Gain2.4K views

Similar to The Need For Speed - NEBytes

Velocity - Edge UG by
Velocity - Edge UGVelocity - Edge UG
Velocity - Edge UGPhil Pursglove
377 views16 slides
The Need for Speed - EpiCenter 2010 by
The Need for Speed - EpiCenter 2010The Need for Speed - EpiCenter 2010
The Need for Speed - EpiCenter 2010Phil Pursglove
450 views16 slides
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010 by
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010Phil Pursglove: Velocity, the Need for Speed - epicenter 2010
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010IrishDev.com
300 views16 slides
Velocity - NxtGen Oxford by
Velocity - NxtGen OxfordVelocity - NxtGen Oxford
Velocity - NxtGen OxfordPhil Pursglove
303 views15 slides
Upgrading to Alfresco 6 by
Upgrading to Alfresco 6Upgrading to Alfresco 6
Upgrading to Alfresco 6Angel Borroy López
5K views40 slides
20171122 aws usergrp_coretech-spn-cicd-aws-v01 by
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01Scott Miao
662 views43 slides

Similar to The Need For Speed - NEBytes(20)

The Need for Speed - EpiCenter 2010 by Phil Pursglove
The Need for Speed - EpiCenter 2010The Need for Speed - EpiCenter 2010
The Need for Speed - EpiCenter 2010
Phil Pursglove450 views
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010 by IrishDev.com
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010Phil Pursglove: Velocity, the Need for Speed - epicenter 2010
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010
IrishDev.com300 views
20171122 aws usergrp_coretech-spn-cicd-aws-v01 by Scott Miao
20171122 aws usergrp_coretech-spn-cicd-aws-v0120171122 aws usergrp_coretech-spn-cicd-aws-v01
20171122 aws usergrp_coretech-spn-cicd-aws-v01
Scott Miao662 views
SCaLE 15x - How Container Schedulers and Software-Defined Storage will Change... by David vonThenen
SCaLE 15x - How Container Schedulers and Software-Defined Storage will Change...SCaLE 15x - How Container Schedulers and Software-Defined Storage will Change...
SCaLE 15x - How Container Schedulers and Software-Defined Storage will Change...
David vonThenen90 views
How Container Schedulers and Software-based Storage will Change the Cloud by David vonThenen
How Container Schedulers and Software-based Storage will Change the CloudHow Container Schedulers and Software-based Storage will Change the Cloud
How Container Schedulers and Software-based Storage will Change the Cloud
David vonThenen114 views
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the... by Jason Himmelstein
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Navigating the turbulence on takeoff: Setting up SharePoint on Azure IaaS the...
Jason Himmelstein1.5K views
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e... by Edward Burns
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
Edward Burns203 views
NetflixOSS for Triangle Devops Oct 2013 by aspyker
NetflixOSS for Triangle Devops Oct 2013NetflixOSS for Triangle Devops Oct 2013
NetflixOSS for Triangle Devops Oct 2013
aspyker2.2K views
The Greatest Introduction to SharePoint Framework (SPFx) on earth! by Małgorzata Borzęcka
The Greatest Introduction to SharePoint Framework (SPFx) on earth!The Greatest Introduction to SharePoint Framework (SPFx) on earth!
The Greatest Introduction to SharePoint Framework (SPFx) on earth!
SpringOne Tour: An Introduction to Azure Spring Apps Enterprise by VMware Tanzu
SpringOne Tour: An Introduction to Azure Spring Apps EnterpriseSpringOne Tour: An Introduction to Azure Spring Apps Enterprise
SpringOne Tour: An Introduction to Azure Spring Apps Enterprise
VMware Tanzu26 views
Coherence sig-nfr-web-tier-scaling-using-coherence-web by C2B2 Consulting
Coherence sig-nfr-web-tier-scaling-using-coherence-webCoherence sig-nfr-web-tier-scaling-using-coherence-web
Coherence sig-nfr-web-tier-scaling-using-coherence-web
C2B2 Consulting722 views
Structure and Opinions - Software Deployments with Cloud Foundry by Andrew Ripka
Structure and Opinions - Software Deployments with Cloud FoundryStructure and Opinions - Software Deployments with Cloud Foundry
Structure and Opinions - Software Deployments with Cloud Foundry
Andrew Ripka271 views
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018 by Mandi Walls
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Mandi Walls329 views
Tech-Spark: SQL Server on Linux by Ralph Attard
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on Linux
Ralph Attard352 views

More from Phil Pursglove

CosmosDb for beginners by
CosmosDb for beginnersCosmosDb for beginners
CosmosDb for beginnersPhil Pursglove
444 views9 slides
Glimpse by
GlimpseGlimpse
GlimpsePhil Pursglove
3.7K views7 slides
Innovation at WSP by
Innovation at WSPInnovation at WSP
Innovation at WSPPhil Pursglove
250 views7 slides
ASP.NET Scalability - VBUG London by
ASP.NET Scalability - VBUG LondonASP.NET Scalability - VBUG London
ASP.NET Scalability - VBUG LondonPhil Pursglove
544 views23 slides
ASP.NET Scalability - WebDD by
ASP.NET Scalability - WebDDASP.NET Scalability - WebDD
ASP.NET Scalability - WebDDPhil Pursglove
999 views22 slides
ASP.NET Scalability - NxtGen Oxford by
ASP.NET Scalability - NxtGen OxfordASP.NET Scalability - NxtGen Oxford
ASP.NET Scalability - NxtGen OxfordPhil Pursglove
452 views25 slides

More from Phil Pursglove(7)

Recently uploaded

VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueShapeBlue
203 views54 slides
Why and How CloudStack at weSystems - Stephan Bienek - weSystems by
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsShapeBlue
238 views13 slides
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...ShapeBlue
132 views13 slides
Business Analyst Series 2023 - Week 4 Session 8 by
Business Analyst Series 2023 -  Week 4 Session 8Business Analyst Series 2023 -  Week 4 Session 8
Business Analyst Series 2023 - Week 4 Session 8DianaGray10
123 views13 slides
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
135 views13 slides
Future of AR - Facebook Presentation by
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook PresentationRob McCarty
64 views27 slides

Recently uploaded(20)

VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue203 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems by ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue238 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue132 views
Business Analyst Series 2023 - Week 4 Session 8 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 8Business Analyst Series 2023 -  Week 4 Session 8
Business Analyst Series 2023 - Week 4 Session 8
DianaGray10123 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue135 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty64 views
State of the Union - Rohit Yadav - Apache CloudStack by ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue297 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue194 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue222 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker54 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE79 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10139 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue186 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue180 views
The Role of Patterns in the Era of Large Language Models by Yunyao Li
The Role of Patterns in the Era of Large Language ModelsThe Role of Patterns in the Era of Large Language Models
The Role of Patterns in the Era of Large Language Models
Yunyao Li85 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue173 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue126 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue138 views

The Need For Speed - NEBytes

  • 1. The Need For Speed A Developer’s Guide to Distributed Caching with Velocity AppFabric Phil Pursglove @philpursglove http://philpursglove.blogspot.com http://www.philippursglove.com/Velocity
  • 2. Agenda • What is AppFabric? • Why a Distributed Cache? • Configuring a client • Configuring a server • Managing a cache • Concurrency • High availability / load balancing
  • 3. Caching Review • .NET 1.1 – ASP.NET Cache • .NET 2.0 – SqlCacheDependency – Enterprise Library Caching Application Block • .NET 4.0 – System.Runtime.Caching assembly – AppFabric
  • 4. What is AppFabric? • A combination of two projects: – A distributed cache • One logical cache shared across a number of physical servers • Already being used by: – MSDN Forums – Xbox Live – MSN • A session state provider • In .NET 4.0, a cache provider – A workflow host • Beta 2 Refresh released 26th April 2010 – Servers must be .NET 4.0, clients can be .NET 3.5/4.0 • v1 by 30th June 2010
  • 5. Why a Distributed Cache? • Bigger cache – Many physical servers contribute to one logical cache • High availability – Multiple servers = fault tolerance • Increased throughput – Many servers available to fulfil requests
  • 6. Terminology • Cluster – A number of servers running Velocity – Not related to Windows clustering • Cache – A named cache on a cluster • Region – A named part of a cache associated to a single server
  • 7. What Data Can I Cache In AppFabric? • Any serializable .NET object – Reference Data (Shared Read) • e.g. Product categories – Activity Data (Exclusive Write) • e.g. Shopping Basket – Resource Data (Read and Write) • e.g. product stock data
  • 8. Configuring the AppFabric Client • Two assembly references to add: – Microsoft.ApplicationServer.Caching.Client.dll – Microsoft.ApplicationServer.Caching.Core.dll • Cache hosts can be hard-coded or in web.config/app.config • Clients – Routing vs Simple – Local caches
  • 9. Using AppFabric 1 • Add/Remove • Concurrency – Optimistic – Pessimistic
  • 10. Using AppFabric 2 • Regions – Live inside a cache – Tie a group of cached objects to a specific node  – But adds extra options (Tags) for retrieving the object 
  • 11. Configuring an AppFabric Server • Cluster configuration can be held: – On a network share (XML Provider) – In a SQL Server DB (SQL Provider) • Integrated Security only  – AppFabric servers must be inside a domain
  • 12. Managing An AppFabric Cluster • Powershell integration – Can start/stop a whole cluster or individual servers – Create new named caches • But not regions  – Get cache statistics • MDCAdmin tool – WPF app sitting on top of Powershell
  • 13. Summary • Velocity is going to be great … in v2  • v1 is worth looking at as a session state provider – The end of sticky load-balancing 
  • 14. AppFabric Launch Event • Tomorrow afternoon 1630-1730 • Launch event for Windows Server AppFabric and Windows Azure AppFabric • Visit http://www.appinfrastructure.com for details
  • 16. References • Documentation on MSDN – http://tinyurl.com/msdnappfabric • Velocity team blog – http://blogs.msdn.com/velocity – http://blogs.msdn.com/endpoint • AppFabric blog for IT Pros – http://blogs.technet.com/appfabric/ • TechEd videos – http://tinyurl.com/velocityteched • Mix 09 video – http://tinyurl.com/velocitymixvideo • Mix 10 video – http://tinyurl.com/velocitymix10video • ARCCast Video – http://tinyurl.com/velocityscotthavideo • ScottHa on Velocity – http://tinyurl.com/velocityhanselminutes • Deep Fried Bytes on AppFabric – http://tinyurl.com/deepfriedappfabric
  • 17. References • AppFabric coverage on StackOverflow – http://tinyurl.com/stackoverflowvelocity – http://tinyurl.com/stackoverflowappfabric • DotNetRocks – http://tinyurl.com/dotnetrocksappfabric • Other .NET distributed caches – NCache - http://tinyurl.com/ncache – Memcached - http://tinyurl.com/smoe – Oracle Coherence – http://tinyurl.com/oraclecoherence – SharedCache – http://codeplex.com/sharedcache • Extensions Project – http://tinyurl.com/mscacheext • Admin Tool – http://mdcadmintool.codeplex.com/