Preparing your design workspace

Loading the problem and your latest saved attempt…

Malicious IP Traffic Filtering Platform

Design a global system that derives time-bounded IP traffic decisions and enforces them at low-latency ingress points.

Problem statement

For this exercise, assume an internet-facing service records privacy-limited request metadata, derives time-bounded decisions for source IP addresses, and enforces allow, observe, or block outcomes at its ingress locations.

Signals may use source IP, request time, route class, response class, byte count, and externally reviewed indicators; request bodies, credentials, and user content are not collected.

Every decision has a stable IP key, version, reason category, effective time, and expiry, and an expired block must not continue indefinitely. Signal ingestion and operator overrides use stable operation identities. Authorized operators can inspect evidence summaries, apply expiring overrides, and audit changes.

Account abuse, device fingerprinting, malware analysis, content moderation, packet-payload inspection, and model-training internals are outside scope.

What to build

  1. The platform accepts idempotent privacy-limited traffic observations and maintains bounded-window signal summaries per source IP.
  2. The platform derives versioned, expiring allow, observe, or block decisions with reason categories and retains their audit history.
  3. Ingress locations enforce the newest valid decision with bounded propagation delay and expose their applied version and age.
  4. Authorized operators can inspect evidence summaries and apply authenticated, expiring, auditable overrides for false-positive recovery.

At scale

  • Assume five million requests per second at peak, fifty million active source IP addresses per day, and ten million signal updates per minute during an attack.
  • Assume filtering adds at most two milliseconds at the 99th percentile; ninety-nine percent of healthy ingress locations apply a committed block within ten seconds, and all reachable locations apply it within sixty seconds.
  • Target 99.99 percent monthly request-path availability, retain aggregated signals and decision history for thirty days, and recover a failed decision-processing region from its durable cursor within fifteen minutes.