Subscribe
Fenix

Technologies, Hacks and Games...

Latest posts

Exposing services with the Gateway API and cert-manager

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.

7 min read

Golang Tutorial 15: Context for timeouts and cancellation

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.

8 min read

A serverless API in Go with Lambda, API Gateway and DynamoDB

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.

9 min read

The outbox pattern: reliable events from a database to a queue

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.

8 min read