Token Bucket Rate Limiter (Go Code Review)
Review a Go implementation of a token bucket rate limiter. Identify issues related to uninitialized maps, concurrency race conditions on shared data structures, and suboptimal struct creation and management patterns.
Asked at:
Google
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Mid August, 2026
Senior Manager
I chose to do the Review with Golang. It had very typical things to look for in Go programs * Unitialised maps which would cause exceptions at write * Concurrency race conditions to shared data structures * Junior code standard for creating and managing structs
Your account is free and you can post anonymously if you choose.