GoTech Demo
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
Worker Pool
G0
G1
G2
G3
G4
G5
G6
G7
Pool Utilization
Throughput Over Time
Event Log
Waiting for events... Click "Start Demo" to begin.

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.