📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

How would you set up a canary release with an automatic latency gate for an ASP.NET Core API on Azure?

Setting up a canary release with an automatic latency and error-rate gate for an ASP.NET Core API on Azure.

Senior Theory Advanced application-insights azure canary-release ci-cd devops

🎯 Key points

  • Traffic split: slot routing, Container Apps revisions, or Front Door / APIM / YARP weights
  • Version-tagged telemetry so canary and stable compare on the same window
  • Gate: KQL query or Azure Monitor alert on p95 and error rate vs stable
  • Automatic rollback: pipeline sets the canary weight to 0 on breach
  • Progressive steps (10% -> 50% -> 100%) with a soak time per step
  • Canary sized for enough requests to be statistically meaningful
  • Feature flags (Azure App Configuration) to disable a feature without redeploying

⏱ 30-second answer

Ship the new version alongside the old and send it a small share of traffic (5–10%) using App Service deployment slot traffic routing, Container Apps revision weights or gateway weights (Front Door, APIM, YARP). Tag telemetry with the version (application_Version / service.version) so Application Insights can compare canary and stable p95 and error rate over the same window. A pipeline stage (Azure DevOps gate or a GitHub Actions job running a KQL query, or an Azure Monitor alert) waits [10–30 minutes]; if canary p95 is more than [20%] above stable or errors exceed the SLO, it sets the weight back to 0 automatically, otherwise it steps up (10% → 50% → 100%). Keep risky features behind feature flags (Azure App Configuration) so you can turn one off without redeploying. Size the canary so it gets enough requests for a meaningful comparison.

🔍 What the interviewer is checking

Checks that the prevention is concrete and they know how it works, not just a buzzword.

↩ Usually asked after

More in CI/CD

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me