Hacker
Pankil Pandya
@ppandya
Projects
RetryGuard
Flagsmith Experimentation HackathonNov 2026
Every backend team ships HTTP retry and timeout policies—and many add shared client-side retry budgets (capping retries across a burst) assuming they will protect struggling upstreams during brownouts without hurting users. In practice, teams rarely A/B test how retry policies behave under real socket contention and strict per-request deadlines, so "load-saving" caps can silently break SLAs. RetryGuard is an experimentation harness and diagnostic workbench for testing HTTP retry policies over real loopback TCP traffic behind Flagsmith before shipping them to production. It pairs: 1. A FastAPI Gateway (:8010) enforcing policies, jittered backoff, timeouts, and per-job deadlines. 2. A concurrency- and queue-bounded FastAPI Upstream Service (:8011) (6 workers dropping to 2 during fault windows, 8 FIFO queue slots, and HTTP 503 load shedding) so latency, queueing, and 503 backpressure come from real sockets—zero mocked outcomes. 3. A self-hosted Flagsmith v2.295.2 control plane (:8000) handling multivariate assignment, exposure and metric ingestion, Bayesian evaluation, and automated rollout decisions. 4. An interactive Side-by-Side A/B Replay & Live Flagsmith Workbench UI (:8010) plus an offline cryptographic/statistical verifier (verify_experiment.py) to inspect why a policy won or failed and prevent demo runs from mutating scored experiment data. Backend, platform, and SRE teams can use RetryGuard to benchmark resilience changes (retry caps, jitter schedules, circuit breakers) against real service dynamics instead of guessing in production.