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.

100 – 10,000
1 – 100 goroutines
50 – 1,000 ms

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.

goroutines chan

Safe Aggregation

All workers update shared counters (success, failed, active). A sync.Mutex prevents data races across concurrent writes.

sync.Mutex

Cancellation

Hit cancel and every goroutine stops immediately. context.WithCancel propagates the signal, freeing all resources.

context

Live Streaming

The dashboard updates via Server-Sent Events. The Go server pushes HTML fragments over a long-lived HTTP connection.

SSE HTMX