// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
How to log properly in a Node.js backend: why console.log falls short, structured JSON logging with Pino, when Winston fits, request context with AsyncLocalStorage, redaction and levels, and how logs connect to traces.
Next.js can serve API routes and Server Actions, and many apps outgrow that once they need queues, cron, long-running work or a second client. How far the built-in backend goes, the signs it is time for a separate backend, and how to connect one with a typed client.
The main ways to run Redis or Valkey without operating it yourself, how they differ on networking, durability, scaling and licensing, and how to use a managed cache from backend code.
How to validate incoming JSON in a Go API. Strict decoding, struct tags with go-playground/validator, rule-based validation with ozzo-validation, turning failures into useful 400 responses, and where validation should run so no handler forgets it.
How Go teams get an OpenAPI spec and Swagger UI for their APIs in 2026. Annotation-based generation with swag, spec-first code generation with oapi-codegen and ogen, code-first frameworks like Huma, where go-swagger fits now, and how to pick between them.
How to do structured logging in Go: the standard library's log/slog, when zap or zerolog are worth adding, request-scoped fields, levels and redaction, and how logs connect to traces in production.
How to add caching to a Go backend: when an in-process cache is enough, using Redis with go-redis, the cache-aside pattern, TTLs and invalidation, and preventing cache stampedes with singleflight.
How to use the AWS SDK for Go v2 in a backend: loading config and credentials, calling S3, paginating, handling typed errors and presigning URLs, plus when to declare the bucket in code and skip the SDK calls for your own resources.
EC2 gives you virtual machines and ECS schedules containers onto them or onto Fargate. What each one leaves to you, how they combine, and how to get a containerized backend running on AWS from application code.
How to deploy a Cloud Run service with Terraform using google_cloud_run_v2_service: the container, scaling, service account, public access, Secret Manager, VPC egress and Cloud SQL, plus how to handle image updates from CI and when to skip the Terraform.
How to build a production AWS VPC in Terraform, first with the community VPC module and then with plain resources, what each piece is for, and how to get the same three-tier network for every environment without maintaining it.
The infrastructure behind a production AI agent: model access, state and memory, tool APIs, queues for long tasks, secrets, and tracing. What each piece does, what to use for it, and how to run the stack in your own AWS or GCP account.