Bot & traffic defence / Cloud security / Infrastructure security
Marketplace Traffic Defence Lab
Test traffic controls without losing sight of legitimate buyers. Explore shared rate limits, explainable recommendations and recorded AWS WAF validation.

THE IDEA, ILLUSTRATED
Two counters. One allowance.
Repeat visitor: “What if I try her counter?”
Counter staff: “Same record. Same limit.”
The two staffed counters represent application instances; the manager’s shared ledger represents Redis. Both instances check the same allowance for the same visitor. Empty circles show that visitor’s exhausted allowance, not a limit that blocks everyone. The hourglass represents replenishment over time.
A fictional workplace scene.
- 01CloudFront + WAF
- 02Private ALB
- 03App instances
- 04Shared Redis
01 / THE PROBLEM
The problem
Independent rate counters can multiply a visitor's allowance as application instances increase. Aggressive traffic rules can also reject legitimate buyers, especially on shared networks.
02 / THE APPROACH
The approach
Coordinate application limits through Redis and evaluate candidate rules against labelled synthetic journeys and a separate holdout. Keep edge recommendations in Count mode until their effect has been reviewed.
03 / ARCHITECTURE
Architecture
The documented AWS lab routes CloudFront and WAF traffic through a private application load balancer to two Fargate application tasks sharing an ElastiCache Redis primary. Logs feed sanitized saved evidence. The public dashboard is a static view of that evidence, not a live AWS environment.

THE IDEA, ILLUSTRATED
Check buyer impact before enforcement.
Manager: “Ready to turn the rule on?”
Engineer: “First, who else would it stop?”
Left: the shopper with one bag is the regular buyer. Back: the visitor in the tan hoodie represents repeated requests. Centre: the engineer in the charcoal blazer reviews the rule. Right: the manager is ready to activate it. They review buyer impact before enforcement. In the lab, edge recommendations stay in Count mode for review, and a login candidate is withheld when its holdout buyer impact exceeds the lab’s budget. This is a teaching metaphor, not a measured outcome.
A fictional workplace scene.
04 / IMPLEMENTATION
Inside the implementation
- Atomic Redis token buckets share the allowance across application instances. The outage experiment permits a small per-instance browsing fallback and rejects sensitive routes; that fallback is not a global quota.
- A Python standard-library recommender uses trusted calibration data, bounded candidates, labelled replay and a separate holdout. It proposes settings; it does not automatically apply application policy.
- The documented login candidate is withheld because it exceeds the lab's buyer-impact budget on the holdout. JA4 is investigation context and never independently triggers a blocking recommendation.
05 / EVIDENCE
What the evidence supports
The repository reports 18 AWS checks, 12 local integration checks and six recommendation tests passing on 13 October 2026, with AWS cleanup verified. A separate enforcement probe was returned to Count. These are documented project results, not an independent rerun. The saved-results dashboard was reachable on 23 October 2026.
06 / LIMITATIONS
Where this stops
- The dashboard shows saved test results. AWS resources were removed; there is no continuously running cloud lab or production bot-detection service behind it.
- Traffic labels and replay outcomes are synthetic. They do not establish production detection accuracy, capacity or conversion impact.
- Slow and distributed abuse, session rotation and Redis state loss remain limitations. One Redis primary is not a highly available or multi-region quota system.
TAKE IT WITH YOU
Review buyer impact and rollback alongside the rule you want to enforce.