Dashboard/ScaleLab Traffic ArenaComing Soon
HIGH-TRAFFIC LOAD SIMULATOR • ENGINEERING ROADMAP

Master 100k+ RPS Systems Before You Hit Production.

Most developers never get hands-on access to production systems handling massive traffic bursts. RepoHamster ScaleLab is an upcoming interactive load simulation arena where candidate code is bombarded with synthetic traffic spikes. You must diagnose bottlenecks and implement both code-level and service-level architectural changes to survive the surge.

Target: 10,000 – 100,000 RPSReal Memory & CPU ConstraintsLive Latency Heatmap
RepoHamster Mascot

ScaleLab Engineer

Status: Construction Active

Beta Target: Q1 2027

Level 1: Code-Level Surgery

Micro-benchmarking inside the application runtime

When millions of requests arrive, algorithmic sloppiness causes catastrophic failure. Candidates must resolve:

  • •Thread contention on synchronized blocks & global locks
  • •Allocation-heavy hot loops triggering Stop-the-World GC pauses
  • •Unbounded in-memory collections causing Out-Of-Memory (OOM) crashes
  • •Database connection leaks starving the worker thread pool

Level 2: Service-Level Architecture

Macro-resilience across distributed boundaries

Resilience requires distributed mechanisms to prevent downstream outages from collapsing your whole stack:

  • •Token bucket rate limiters shedding load at the gateway edge
  • •Circuit breakers isolating degraded downstream microservices
  • •Message queue backpressure preventing consumer buffer overflow
  • •Cache stampede mitigation with coalescing singleflight locks

Planned TODO Tasks: Code-Level Optimization Challenges

Hands-on coding challenges deployed directly inside GitHub Codespaces.

Phase 1 Tasks
TASK-C1P0 High
Hard

Deadlock & Mutex Lock Contention Elimination

Diagnose and replace coarse-grained synchronized mutex locks on high-throughput shared state (e.g. inventory decrements) with optimistic concurrency, atomic CAS primitives, or striped locking.

Challenge Type: Runtime ProfilingIn Progress
TASK-C2P1 Core
Intermediate

Hot-Path Object Allocation & Garbage Collection Pause Reduction

Refactor memory-intensive request parsers to use reusable byte buffers, object pools, and zero-copy string slicing, preventing stop-the-world GC latency spikes during 50k RPS load bursts.

Challenge Type: Runtime ProfilingTodo
TASK-C3P0 High
Hard

Database Connection Pool Exhaustion & Leak Remediation

Fix unreleased database connection leaks, configure pool sizing and connection timeouts (HikariCP / pgBouncer / Go sql.DB), and optimize queries holding exclusive row locks.

Challenge Type: Runtime ProfilingTodo
TASK-C4P1 Core
Intermediate

Cache Stampede & Thundering Herd Defense

Implement coalescing singleflight patterns, probabilistic early expiration (XFetch), and tiered L1 in-memory + L2 distributed Redis caches to prevent cache invalidation database crashes.

Challenge Type: Runtime ProfilingTodo

Planned TODO Tasks: Service-Level Distributed Challenges

Multi-container architectural resilience and backpressure exercises.

Phase 2 Tasks
TASK-S1P0 High
Hard

Distributed Token Bucket Rate Limiting & Load Shedding

Build sliding-window rate limiters with Redis scripts and load-shedding reverse proxies that gracefully reject non-critical requests when CPU utilization exceeds 85%, ensuring system survival.

Challenge Type: Distributed SystemsIn Progress
TASK-S2P1 Core
Intermediate

Circuit Breaker Pattern with Graceful Fallback Responses

Implement resilient circuit breakers (Closed / Open / Half-Open state machines) guarding slow 3rd-party payment APIs, returning cached fallbacks rather than queuing cascading timeouts.

Challenge Type: Distributed SystemsTodo
TASK-S3P0 High
Hard

Message Queue Backpressure & Buffer Drain Balancing

Configure consumer concurrency, batch acknowledgement, and dead-letter queues in Kafka / RabbitMQ pipelines to prevent unbounded memory growth and out-of-memory worker crashes.

Challenge Type: Distributed SystemsTodo
TASK-S4P2 Future
Advanced

Read-Replica Routing & Replication Lag Tolerance

Architect dynamic connection splitters directing read traffic to read-replicas while keeping write-after-read consistency guarantees for critical user paths.

Challenge Type: Distributed SystemsTodo

Platform Infrastructure & Stress Harness Roadmap

The underlying burst test runner, real-time metrics telemetry, and automated grading harness.

System Blueprint
TASK-H1Milestone 1

Distributed Synthetic Load Burst Generator (k6 & Autocannon)

Deploy headless load worker nodes capable of simulating customizable traffic profiles: gradual warm-up, flash sale spike bursts (10k -> 100k RPS), and soak testing.

In Progress
TASK-H2Milestone 2

Real-Time Streaming Telemetry (p50, p95, p99 & Resource Heatmap)

Stream real-time latency distributions, 4xx/5xx HTTP error rates, CPU/RAM saturation, and thread pool exhaustion into an interactive live dashboard in the candidate Codespace.

Todo
TASK-H3Milestone 3

Survival Score & Performance Degradation Evaluator

Score candidate code submissions on 3 criteria: (1) p99 latency SLA compliance under peak load, (2) zero data loss / corruption, and (3) graceful recovery after load diminishes.

Todo
TASK-H4Milestone 4

Post-Run Flamegraph & Bottleneck Trace Explorer

Generate interactive flamegraphs showing candidate engineers the exact lines of code, lock waits, or SQL queries that caused bottleneck throttling.

Todo

Want to Test High-Traffic Scenarios Early?

We are actively developing the first batch of k6 load generation templates and Redis backpressure sandboxes. In the meantime, you can sharpen your debugging skills on our live real-world challenges!