01
High Concurrency
Goroutine pool with rate limiting and singleflight request merging. Click Start to simulate burst traffic hitting a Go backend.
IDLE
Scale100K
DAU
60K
Peak QPS
30K
WS Conns
10K
Data/Year
10 TB
Go Instances
6
Active Goroutines
0
/ 8 pool
Completed
0
Throughput
0.0/s
Avg Latency
0ms
Queued
0
Rate Limited
0
Singleflight Merged
0
Rate Limit
100 max
How It Works
Worker Pool
Go uses semaphore.Weighted to limit concurrent goroutines. Each worker slot processes one request at a time. Pool size = 8 means at most 8 concurrent DB calls.
Rate Limiting
When active goroutines exceed the rate limit threshold, new requests are rejected immediately with HTTP 429. This protects downstream PostgreSQL from being overwhelmed.
Singleflight
Duplicate requests for the same resource (same cache key) are merged. Only one goroutine hits the DB, all waiters get the same result. Prevents cache stampede.