Webhook Dispatcher
Simulate a High-Throughput Event Queue
A live demonstration of Go concurrency primitives: goroutine worker pools, channel-based job distribution, mutex-protected state, and context-based cancellation.
How it works
Worker Pool
N goroutines pull jobs from a buffered channel. The channel acts as a rate limiter — workers only process what they can handle.
Safe Aggregation
All workers update shared counters (success, failed, active). A sync.Mutex prevents data races across concurrent writes.
Cancellation
Hit cancel and every goroutine stops immediately. context.WithCancel propagates the signal, freeing all resources.
Live Streaming
The dashboard updates via Server-Sent Events. The Go server pushes HTML fragments over a long-lived HTTP connection.