Edge bot detection

DesignHard45 minGoogle and Amazon style

Your task

Design an edge bot- and abuse-detection system for a global CDN/web platform serving 5M req/s across 250 PoPs. It must score every request in under 1ms of added p99 latency, block credential-stuffing, scraping, and L7 DDoS, and adapt to new attack patterns within minutes. Threat model: distributed residential-proxy botnets that rotate IPs, mimic real browsers, and stay under any single-IP rate limit. You may emit a JS/TLS-fingerprint challenge but must keep human friction near zero. Walk through detection signals, where decisions are made (edge vs central), and how models are trained and pushed.

It covers

  • Abuse detection
  • Edge
  • Rate limiting
  • Bot mitigation