Skip to content

59

Articles

Featured Series

Latest Articles

Backend Engineering4 min read

Go context.Context Cheat Sheet: Cancellation, Timeouts & Gotchas

Go context.Context: constructors, cancellation, deadlines, request values, and five goroutine leak patterns in production.

#go#context#concurrency
Go context.Context Cheat Sheet: Cancellation, Timeouts & Gotchas
Medium
Backend Engineering
Backend Engineering4 min read

Kafka Producer Tuning Cheat Sheet: Throughput, Latency & Durability

Kafka producer configuration: acks, idempotence, batching, compression, and the tradeoffs that matter for throughput and durability.

#kafka#event-driven#distributed-systems
Kafka Producer Tuning Cheat Sheet: Throughput, Latency & Durability
Medium
Backend Engineering
Backend Engineering5 min read

Postgres EXPLAIN Cheat Sheet: Reading Query Plans Like a Pro

Postgres EXPLAIN plans: node types, cost interpretation, and six patterns that kill query performance on large datasets.

#postgresql#database-internals#performance
Postgres EXPLAIN Cheat Sheet: Reading Query Plans Like a Pro
Medium
Backend Engineering
AI Engineering6 min read

Building an MCP Server in Go with Code Mode: From 1.17M Tokens to 1,000

2,500 API endpoints in one MCP server without blowing context windows. The Code Mode pattern uses search + execute to cut token cost by 1,000x.

#llm#ai#mcp
Building an MCP Server in Go with Code Mode: From 1.17M Tokens to 1,000
Hard
AI Engineering
AI Engineering8 min read

Securing AI Agent Infrastructure: MCP Servers, Tool Calls, and the Attack Surface You're Not Watching

AI agents calling tools via MCP create new attack surfaces: prompt injection through tool responses, credential leakage, and unauthorized execution.

#ai#security#llm
Securing AI Agent Infrastructure: MCP Servers, Tool Calls, and the Attack Surface You're Not Watching
Hard
AI Engineering
System Design9 min read

Consistent Hashing: The Algorithm Behind Every Scalable Distributed System

Adding one cache server shouldn't invalidate every key. Consistent hashing with virtual nodes and bounded loads — full Go and Java implementations.

#consistent-hashing#distributed-systems#system-design
Consistent Hashing: The Algorithm Behind Every Scalable Distributed System
Medium
System Design
System Design6 min read

Distributed Rate Limiting at Scale: The Probabilistic Drop Architecture

Probabilistic drop rate limiting: uncoordinated enforcement bypassing Redis for 1M+ RPS with zero coordination overhead.

#rate-limiting#distributed-systems#go
Distributed Rate Limiting at Scale: The Probabilistic Drop Architecture
Hard
System Design
AI Engineering9 min read

Vector Databases Compared: pgvector vs Pinecone vs Weaviate

Compare pgvector, Pinecone, Weaviate, Qdrant, Milvus, and Chroma on performance, cost, and operational fit with real code and benchmarks.

#vector-database#rag#llm
Vector Databases Compared: pgvector vs Pinecone vs Weaviate
Hard
AI Engineering
Backend Engineering8 min read

Go Dynamic JSON: Parsing Unknown Schemas in Production

Handle unpredictable JSON in Go: map[string]any, json.RawMessage, type switches, and defensive patterns for shifting schemas.

#go#api-design#production
Go Dynamic JSON: Parsing Unknown Schemas in Production
Medium
Backend Engineering
Backend Engineering10 min read

Go Graceful HTTP Shutdown: Zero-Downtime Production Patterns

Go graceful shutdown: SIGTERM handling, health probe coordination, and Kubernetes drain patterns for zero dropped requests.

#go#production#reliability
Go Graceful HTTP Shutdown: Zero-Downtime Production Patterns
Medium
Backend Engineering