ingress-nginx was retired in March 2026, so shorty gets HTTPS through the Gateway API instead: Envoy Gateway, a Gateway and HTTPRoutes, an HTTP to HTTPS redirect and a certificate from cert-manager, tested on kind with a local CA.
Unit tests for a Terraform module that need no AWS account: terraform test with mock_provider, validation and preconditions, a check block, tflint with the AWS ruleset, and a GitHub Actions job that runs them on every pull request.
How context.Context carries deadlines and cancellation from an HTTP request down to a Postgres query in Go. WithTimeout, WithCancelCause, WithoutCancel, AfterFunc, and what should never go into context values. Tested on Go 1.27 and Postgres 18.
Part 6 of the shorty series: build the Go image for amd64 and arm64 in GitHub Actions and push it to Amazon ECR and GHCR. OIDC instead of access keys, tags from the git SHA and version, buildx with the GitHub cache, and cross-compiling so arm64 needs no QEMU.
shorty, the Go URL shortener from this series, rebuilt as one Lambda function on provided.al2023 behind an API Gateway HTTP API with a DynamoDB table. Tested locally with the Lambda emulator, deployed with Terraform, and costed against ECS in Mumbai.
Build the shorty image once per commit, tag it with the git SHA, and move the same digest through dev, staging and prod with config coming from the environment at runtime. With a local test that shows why rebuilding per environment gives you a different image.
Saving an order and then sending an event is two writes, and one of them will fail sooner or later. The outbox pattern writes the event in the same Postgres transaction and lets a relay send it to SQS, with an idempotent consumer at the end. Runnable Go code included.
Using pg_stat_statements on Postgres 18 to rank queries by total time, auto_explain to catch the plan of a slow query in the logs while it is slow, and a snapshot table so you never have to reset the stats to see what changed.
A runbook for the four pod states you will meet first, each one broken on purpose on a kind cluster: kubectl describe, logs --previous, events, lastState and an ephemeral debug container for a distroless image.
Rename resources, move them into a module, adopt hand-built ones and stop managing others, all without Terraform destroying anything. Runnable demo with moved, removed and import blocks on Terraform 1.17.
Buffered and unbuffered channels, closing them, select with timeouts, WaitGroup.Go, a mutex the race detector is happy with, a bounded worker pool and errgroup. Runnable Go 1.27 examples and an exercise at the end.
Part 5 of the shorty series: a GitHub Actions CI workflow for a Go service. golangci-lint v2 with a config that fits, go test with the race detector against a real Postgres service container, setup-go caching, and a coverage summary on every pull request.