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

📚 Interview question

What is a brownout, and how would you run one before removing an API version?

Mid-Level Coding Intermediate api-gateway api-versioning brownout deprecation web-api

🎯 Key points

  • Announced in advance with exact times (email, portal banner, changelog, Deprecation/Sunset headers)
  • Fails the way the version will after sunset: 410 Gone with ProblemDetails and a migration link
  • Some teams use 503 + Retry-After or reject only a share of calls; trade-off is clarity vs gentleness
  • Increasing duration: 10 min, 1 h, 1 day, in partner business hours
  • Implemented as a switchable gateway policy or feature flag
  • Per-client error monitoring during the window, then direct follow-up
  • Docs and migration guide updated before the first brownout

⏱ 30-second answer

A brownout is a short, announced window where the deprecated version deliberately fails, so clients that ignored the notices find out in a controlled way instead of on sunset day.

  • Response: I prefer exactly what clients will see after sunset, 410 Gone with a ProblemDetails body linking the migration guide, so the error is unambiguous. Some teams use 503 with Retry-After or fail only a percentage of calls for a gentler start; that is kinder to fragile clients but easier to mistake for an outage.
  • Run it: announce dates through email, the developer portal and the changelog, schedule a few of increasing length (10 minutes, 1 hour, 1 day) in Australian and partner business hours, as a gateway policy or feature flag you can switch off instantly.
  • Follow up: watch per-client errors and contact every client that hit it.

🔍 What the interviewer is checking

Checks practical experience flushing out silent clients safely: choosing the brownout response, communicating it, making it reversible and following up per client.

Green flags

  • Brownouts announced, time-boxed and reversible
  • Chooses the status code deliberately and can explain 410 vs 503
  • Monitors per client and follows up directly

Red flags

  • Unannounced failures in production
  • No way to switch it off quickly

↩ Usually asked after

More in API Design

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me