How to Build High Performance Apps Using Microsoft
How to Build High Performance Apps Using Microsoft Azure Redis Cache Pranav Rastogi | @rustd M 350
Professional ASP. NET 4. 5 in C# and VB
Typical Caching Pattern Storage Web Tier Data SQL
Web Tier Azure Region - High Throughput - Low Consistent Latency 50% : <3 ms 99% : <10 ms Storage Cache Data SQL
What is Redis? “Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. ” redis. io “Redis has many different use cases. The simplest way to describe it is something between a traditional database and doing computations in memory. Redis exposes data structures that are accessed in memory via a set of commands. ” – Salvatore
• • • Memcache protocol shim
§ § https: //msdn. microsoft. com/en- us/library/azure/dn 766201. aspx
Azure Redis Cache Performance Cache Name Cache Size GET/sec (Simple GET calls of 1 KB values) Bandwidth (Mbits/sec) Cores (Redis) C 0 250 MB 610 5 0. 25* C 1 1 GB 12, 200 1* C 2 2. 5 GB 24, 300 200 1 C 3 6 GB 48, 875 400 1 C 4 13 GB 61, 350 500 1 C 5 26 GB 112, 275 1000 1 C 6 53 GB 153, 219 1000+ 1
§ Cache Aside pattern § Retry logic §
Multi-Region Scenario Azure Region 1 Azure Region 2 Storage Web Tier Cache Sync
Multi-Region Scenario Azure Region 2 Azure Region 1 Web Tier Cache SQL Cache
Master Slave Availability Set
Master Slave Availability Set
Master Slave Availability Set
§ Pricing § Documentation § Cache User Voice • Microsoft patterns & practices on Cache § Retry logic § Investigating Timeout Exceptions in Stack. Exchange. Redis § Memcache protocol shim
Free Online Learning http: //aka. ms/mva Subscribe to our fortnightly newsletter http: //aka. ms/technetnz http: //aka. ms/msdnnz Sessions on Demand http: //aka. ms/ch 9 nz
© 2015 Microsoft Corporation. All rights reserved. Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
- Slides: 39