Posts

Showing posts with the label Go

Go context.Context Done Right: Cancellation, Timeouts, and Values

Master Go context for cancellation, timeouts, and request-scoped values. Covers HTTP handlers, database calls, background workers, goroutine leaks, and graceful shutdown. Go context.Context Done Right: Cancellation, Timeouts, and Values

Implementing CQRS in Go: A Practical Guide to Scalable Architecture

Learn how to implement the CQRS pattern in Go. This guide covers design principles, practical code examples, library recommendations (Watermill, Event Horizon), and architectural tradeoffs for building scalable, maintainable systems. Implementing CQRS in Go: A Practical Guide to Scalable Architecture

Transactional Outbox Pattern in Go with PostgreSQL

Stop losing events between your database and message broker. Learn the transactional outbox pattern in Go with PostgreSQL, FOR UPDATE SKIP LOCKED, and a polling relay. Transactional Outbox Pattern in Go with PostgreSQL

Testing Concurrent Go Code with synctest

Learn how Go testing/synctest makes concurrent tests faster and more reliable with fake time, isolated bubbles, Wait, and deterministic async behavior. Testing Concurrent Go Code with synctest

Go Error Handling Architecture: Boundaries and Patterns

Learn Go error handling architecture with wrapping, sentinel errors, custom types, errors.Is, errors.As, API boundaries, logging, and production patterns. Go Error Handling Architecture: Boundaries and Patterns

Build a Web API with Go in Under an Hour

Learn to build a functional web API with Go 1.26, covering RESTful endpoints, database persistence with PostgreSQL and GORM, and testing best practices in under an hour. Build a Web API with Go in Under an Hour

Multi-Tenancy Database Patterns with examples in Go

Explore shared database, separate schema, and database-per-tenant patterns for multi-tenant apps. Learn trade-offs, security, and when to use each approach - with examples in Go Multi-Tenancy Database Patterns with examples in Go

Parallel Table-Driven Tests in Go

Parallel execution of table-driven tests in Go: Learn best practices, avoid race conditions, and optimize test performance with t.Parallel() and subtests. Parallel Table-Driven Tests in Go

Go Unit Testing: Structure & Best Practices

Master Go unit testing with built-in testing package, table-driven tests, mocks, coverage analysis, and industry best practices for robust Go applications. Go Unit Testing: Structure & Best Practices

Understanding Goroutines and Channels in Depth

Learn how to master Go's concurrency model with goroutines and channels. This guide covers mechanics, patterns, best practices, and performance optimization for building efficient, scalable concurrent applications. Understanding Goroutines and Channels in Depth

Building a Distributed Task Queue in Go for AI Jobs

Learn how to build a scalable distributed task queue in Go for AI jobs using RabbitMQ, Kubernetes, and Go 1.21. Covers architecture, reliability, fault tolerance, and AI workload optimization. Building a Distributed Task Queue in Go for AI Jobs

Discord Integration Pattern for Alerts and Control Loops

Deep dive on Discord webhooks and bots for alerts, approvals, and human-in-the-loop control. Go and Python examples, security, idempotency, and routing. Discord Integration Pattern for Alerts and Control Loops

Slack Integration Patterns for Alerts and Workflows

Deep dive on Slack webhooks and apps for alerts, approvals, and workflow automation. Block Kit buttons, signature verification, Go and Python examples. Slack Integration Patterns for Alerts and Workflows

Practical, minimal examples for working with Ollama in real applications.

Practical Ollama examples in Go & Python, including structured output, Docker, and reverse proxy setups. Practical, minimal examples for working with Ollama in real applications.

Go Project Structure: Practices & Patterns

Master Go project layouts with proven patterns from flat structures to hexagonal architecture. Learn when to use cmd/, internal/, pkg/ and avoid common pitfalls. Go Project Structure: Practices & Patterns

Building REST APIs in Go: Complete Guide

A comprehensive guide to implementing RESTful APIs in Go, covering standard library approaches, frameworks, authentication, testing patterns, and production-ready best practices for scalable backend services. Building REST APIs in Go: Complete Guide

Structured Logging in Go with slog for Observability and Alerting

Structured logs turn Go application output into queryable events. Explore log/slog records, JSON handlers, context and trace correlation, redaction, and log-based signals that support monitoring and alerting. Structured Logging in Go with slog for Observability and Alerting

Airtable for Developers & DevOps - Plans, API, Webhooks, and Go/Python Examples

Deep research guide to Airtable - what it is, core features, Free plan limits and implications, key competitors, and production-ready DevOps integration patterns with runnable Go and Python examples (CRUD, pagination, rate limits, batching, webhooks). Airtable for Developers & DevOps - Plans, API, Webhooks, and Go/Python Examples

Implementing Workflow Applications with Temporal in Go: A Complete Guide

Learn how to implement workflow applications with Temporal in Go using the official Temporal Go SDK. This end-to-end guide covers configuration, examples, deployment, troubleshooting, and best practices for building scalable, resilient workflows. Implementing Workflow Applications with Temporal in Go: A Complete Guide

Using Go to Build RAG Systems: WeKnora Deep Dive

Deep dive into WeKnora, a Go-based RAG framework for building scalable, secure, and high-performance retrieval-augmented generation systems with advanced agent capabilities and hybrid retrieval strategies. Using Go to Build RAG Systems: WeKnora Deep Dive