Problem Statement Implement a counting semaphore with Acquire(n) and Release(n) operations that blocks if not enough per...
Problem StatementImplement a generic connection pool that manages reusable connections with Get(), Put(), and Close() op...
Problem Statement Implement consistent hashing for distributed cache/database sharding. Adding or removing a node should...
Problem Statement Implement a fan-in function that merges N input channels into a single output channel. Close the outpu...
Problem Statement Implement a pub/sub system where subscribers can use wildcards. Subscribe("user.*") should receive eve...
Problem Statement Implement a job queue where jobs can be scheduled to run after a delay. Pop() should block until a job...
Problem Statement Replace fmt.Printf with production-grade structured logging using Zap, the high-performance logger use...
Problem Statement At a high-frequency trading firm, every byte matters. A poorly aligned struct wastes 40% memory. Expla...
Problem Statement Implement 12-factor app configuration using Viper to read from files, environment variables, and flags...
Problem Statement Your Go service runs in a 2GB container but keeps getting OOM killed. Configure GOMEMLIMIT and GOGC to...
Problem Statement GORM has runtime overhead and magic. Raw SQL has no type safety. Use sqlc to get compile-time verified...
Problem Statement Build a production-ready REST API using Gin, the most popular Go web framework used by companies like...
Problem Statement Build a professional CLI application using Cobra, the framework behind kubectl, docker, and hugo. Pro...
Problem Statement The default http.DefaultClient has no timeout and poor connection pool settings. Configure a productio...
Problem Statement Master all synchronization primitives in Go's sync package for building thread-safe applications. syn...
Problem Statement In a Google interview, you're asked to explain the fundamental differences between slices and arrays i...
Problem Statement Master all channel operations and their edge cases. This knowledge is essential for writing correct co...
Problem Statement Understand how goroutines are scheduled, what causes blocking, and best practices for managing concurr...
Problem Statement Master context.Context for cancellation, timeouts, and request-scoped values in Go applications. Cont...
Problem Statement Explain the internal behavior of Go maps, including iteration order, memory management, and concurrent...
Problem Statement At Uber, we need to fetch data from multiple microservices concurrently. If any service fails, we shou...
Problem Statement Design and implement a thread-safe LRU (Least Recently Used) cache with O(1) Get and Put operations. T...
Problem Statement Your API gateway at Stripe needs to limit requests to 100 per second per user. Implement a thread-safe...
Problem Statement A Datadog engineer discovers their Go service is consuming 10x more memory than expected. The culprit:...
Problem Statement Your JSON API service allocates and discards thousands of byte buffers per second, causing GC pauses....
Problem Statement At Netflix, when a downstream service is unhealthy, we need to fail fast instead of waiting for timeou...
Problem Statement At Netflix, a single user request fans out to 50+ microservices. If the user cancels their request (cl...
Problem Statement A production bug at Cloudflare caused a nil pointer panic despite a nil check passing. The root cause...
Problem Statement Your Go microservice is generating excessive garbage, causing GC pressure. Using escape analysis, dete...
Problem Statement Your high-frequency trading system written in Go has latency spikes every few seconds. Using GODEBUG,...
Problem Statement At Uber, we process millions of ride requests daily. Each request involves geocoding, pricing calculat...
Problem Statement During a Google SRE interview, you're asked to explain the nuanced behavior of Go channels. A producti...
Problem Statement A Staff Engineer at Stripe asks: "We have a high-frequency payment counter that increments millions of...
Problem Statement In a Principal Engineer interview at Google, you're asked: "Explain how Go can run millions of gorouti...