Rate Limiting with Redis: Token Bucket and Sliding Window in Go
Production-oriented golang rate limiting with Redis — token bucket and sliding window using Lua scripts, atomic updates, and operational tips.
72 posts
Production-oriented golang rate limiting with Redis — token bucket and sliding window using Lua scripts, atomic updates, and operational tips.
Sign and verify JWTs in Go; short-lived access tokens, refresh rotation, HttpOnly cookies, and common pitfalls.
Smaller container images for Go and Node: multi-stage Dockerfiles, distroless bases, Alpine caveats, and layer caching.
gRPC and REST in microservices: protobuf, HTTP/2, browser constraints, and Go examples — complements our Go vs Node.js service comparison.
A practical deep dive into SSR vs CSR, SEO implications, dynamic rendering architecture, and generating bot-targeted full HTML responses using Puppeteer.
Subcommands with Cobra, flag parsing, stdin/stdout, exit codes, cross-compilation, and testing — a practical guide to production-grade Go CLI development.
Layered integration testing with sqlmock, Testcontainers, httptest, interface-based fake brokers, and external API mocks — architecture diagrams and production-style Go examples.
createReadStream, pipeline, and backpressure; why streams beat buffering entire files; patterns for HTTP, compression, and error handling.
A practical guide to Stoic thinking for modern work life and software teams, with concrete ways developers can use it to improve focus, decisions, and resilience.
A deep dive into Testcontainers for integration tests—what to mock vs run in containers, Docker networking, network aliases, hybrid patterns, and production-grade pitfalls.