All languages

Go for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Checking 200 endpoints one after another can take minutes; checking them concurrently takes seconds. Go makes this straightforward: goroutines are cheap concurrent functions, and channels carry work and…

A Concurrent Health Checker with Goroutines, Channels and a Worker Pool

Check many URLs at once using goroutines, a bounded worker pool, channels and a WaitGroup, measure latency, and print a sorted report with a proper exit code. The standard introduction to Go concurrency.

Sign in free to read this script, along with the rest of the library.

Sign in free