Build a Bounded Concurrent Queue for a Microservice Worker Pool
Overview
What this challenge is about.
Implement a bounded concurrent queue in Go with blocking, timeouts, and race-free tests to earn your verifiable certificate.
The scenario
The startup (4-person infra team, growing customer base by 25 percent QoQ) cannot keep restarting workers in production — incidents are eating on-call.
The Brief
What you'll do, and what you'll demonstrate.
Design and implement a bounded, race-free concurrent queue with backpressure that survives bursty load without OOM-kills, and prove correctness under -race.
Earning criteria — what you'll demonstrate
- Use mutex + condition variables to implement a bounded blocking queue
- Compare a sync.Cond approach against a channel-only approach honestly
- Write test cases that exercise concurrent edge cases (close-while-blocked, timeouts)
- Benchmark under bursty traffic, not just steady-state
Program Fit
Where this fits in your program.
Sharpens the same skills your degree expects you to demonstrate.
Concurrent and Parallel Programming
Bachelor · Systems
Strong alignment
This challenge maps to Concurrent and Parallel Programming at the Bachelor level. It sharpens the same practical skills your coursework expects — but in a real industry context with actual constraints and deliverables.
Skills
Skills you'll demonstrate.
Each one shows up on your verified credential.
- Concurrent Data Structures
Apply concurrent data structures to solve real industry problems and demonstrate production-level capability.
- Mutex And Condvar
Apply mutex and condvar to solve real industry problems and demonstrate production-level capability.
- Go
Apply go to solve real industry problems and demonstrate production-level capability.
- Race Conditions
Apply race conditions to solve real industry problems and demonstrate production-level capability.
- Benchmarking
Apply benchmarking to solve real industry problems and demonstrate production-level capability.
- Documentation
Apply documentation to solve real industry problems and demonstrate production-level capability.
Careers
Career paths this challenge builds toward
Completing this challenge demonstrates skills that transfer directly to these roles: