Distributed Tracing in Go Services with OpenTelemetry
A practical implementation guide for end-to-end tracing, context propagation, sampling, and production observability in Go microservices.
8 posts
A practical implementation guide for end-to-end tracing, context propagation, sampling, and production observability in Go microservices.
Production-oriented golang rate limiting with Redis — token bucket and sliding window using Lua scripts, atomic updates, and operational tips.
gRPC and REST in microservices: protobuf, HTTP/2, browser constraints, and Go examples — complements our Go vs Node.js service comparison.
Sign and verify JWTs in Go; short-lived access tokens, refresh rotation, HttpOnly cookies, and common pitfalls.
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.
A detailed guide to PostgreSQL sharding architecture, shard-key strategy, query routing, cross-shard trade-offs, and production-ready implementation patterns with GORM.
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.