Workshop: Tuning services to deal with latency and errors (part 2)
summary
Workshop shows how to simulate latency and inject failures with k6 load tests and Simmy, and add resilient policies using Polly on a .NET Core web API in Docker. Moving from full .NET on IIS to .NET Core on Alpine cuts the 99th percentile from ~4000ms to ~10ms in real runs. Demonstrations include an 8M-request run (~16k RPS), ordering gotchas (timeout must wrap retries the right way), cancellation tokens injected by the framework, and a hidden-potency bug where HttpRequestMessage can only be sent once.
AI-written summary · about
chapters (15)
- 0:00Welcome back from break
- 1:16Challenge three timeout and retry
- 3:19Performance boost from .NET Core
- 10:06Load testing in Azure DevOps
- 17:26Challenge four combined policies
- 20:03Handling all Azure instances down
- 24:18Splitting monolithic applications
- 29:01Setting performance requirements
- 37:27Challenge five cancellation tokens
- 48:36Cancellation token source vs token
- 58:03Challenge seven hidden retry issues
- 1:00:04Choosing load testing tools
- 1:04:41Challenge seven solution explained
- 1:11:03Challenge eight timeout strategies
- 1:13:29Workshop wrap-up and discussion
