Optimizing performance

Monitor and Troubleshoot Azure Solutions

Ebadur Osib

Senior Cloud Consulting Engineer

Performance is a feature

SlowApp.jpg

 

  • Performance impacts user trust.
  • Slow apps increase failures.
  • Azure helps developers optimize for:
    • Low latency
    • High traffic
Monitor and Troubleshoot Azure Solutions

Where performance problems come from

WhereProblemsComeFrom.jpg

Monitor and Troubleshoot Azure Solutions

Latency vs throughput

ThroughputvsLatency.jpg

Monitor and Troubleshoot Azure Solutions

Optimize the critical path

slowestdependency.jpg

  • Optimization starts by identifying and shortening the slowest sequence.
  • Not everything requires equal tuning.
Monitor and Troubleshoot Azure Solutions

Reducing dependency latency

 

  • Dependencies are the most common source of latency.
  • Methods for reduction:
    • Query optimization
    • Connection pooling
    • Batching requests
    • Reducing chatty calls
  • More effective than scaling compute.

reducinglatency.jpg

Monitor and Troubleshoot Azure Solutions

Caching

cache.jpg

Monitor and Troubleshoot Azure Solutions

Azure Cache for Redis

cache-architecture.png

1 https://learn.microsoft.com/en-us/azure/redis/architecture
Monitor and Troubleshoot Azure Solutions

Azure Managed Redis

managed-redis-architecture.png

1 https://learn.microsoft.com/en-us/azure/redis/architecture
Monitor and Troubleshoot Azure Solutions

Cache design considerations

 

  • Caching introduces important design decisions.

  • You must define expiration policies for cached data.

  • Trade-offs exist between consistency and freshness.

  • A common pattern is cache-aside, where data is loaded into the cache only when needed.

cachecloud.jpg

  • Cache invalidation ensures outdated data is refreshed or removed.
Monitor and Troubleshoot Azure Solutions

Throttling and backpressure

 

  • Too many requests can cause failures.
  • Throttling and backpressure protect systems.
  • Slows or rejects excess traffic.

throttling.jpg

Monitor and Troubleshoot Azure Solutions

Asynchronous and queue-based patterns

queues.jpg

Monitor and Troubleshoot Azure Solutions

The business problem

BusinessProblem.jpg

Monitor and Troubleshoot Azure Solutions

Finding the bottleneck

Bottleneck.jpg

Monitor and Troubleshoot Azure Solutions

Optimizing for scale and speed

Optimized.jpg

Monitor and Troubleshoot Azure Solutions

Let's practice!

Monitor and Troubleshoot Azure Solutions

Preparing Video For Download...