// Articles

Guides and deep dives

Guides, tutorials, and comparisons to help you build better backend applications.

Filter by category: All (696)
SQS vs Kafka: Queue or Event Log for Your Backend?

Amazon SQS is a managed queue where messages disappear once processed, and Apache Kafka is a partitioned log that keeps events for replay. How they differ on delivery, ordering, retention, throughput and operations, and which one a backend actually needs.

6 Min Read
Node.js Logging in 2026: Pino, Winston and Structured Logs

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.

6 Min Read
Next.js Backend: When Route Handlers Are Enough and When to Split Out an API

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.

6 Min Read
Managed Redis in 2026: ElastiCache, Memorystore, Redis Cloud, Upstash and Valkey

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.

6 Min Read
Request Validation in Go: validator, ozzo-validation and Clean 400 Errors

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.

5 Min Read
Swagger and OpenAPI in Go: swag, go-swagger, oapi-codegen, ogen and Huma

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.

6 Min Read
Go Logging in 2026: slog, zap, zerolog and Structured Logs

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.

6 Min Read
Caching in Go: In-Memory Caches, Redis and Cache-Aside Done Right

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.

6 Min Read
AWS SDK for Go v2: S3, Credentials, Pagination and Errors

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.

6 Min Read
ECS vs EC2: How to Run Containers and Backends on AWS

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.

7 Min Read
Cloud Run with Terraform: Services, IAM, Secrets and Cloud SQL

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.

6 Min Read
AWS VPC with Terraform: Subnets, NAT Gateways and Security Groups

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.

7 Min Read