Posts
Observability: Three-State Health Checks and a Tracing Abstraction
Gortex health checks report Healthy, Degraded or Unhealthy, adding a degraded state beyond up/down; tracing depends on one Tracer interface, with OTel as an adapter.
The WebSocket Hub: Go's Take on the Actor Model
Gortex's WebSocket Hub is the actor model in Go: one goroutine owns all state, callers reach it over channels instead of locks, and slow consumers are dropped.
Concurrent Counting and Resilience: Sharded Metrics and a Circuit Breaker
How gortex shards one metrics lock into sixteen, counts with atomics, keeps a three-state circuit breaker consistent, and why a channel is the wrong tool here.
Adding Decap CMS to a Hugo Site on Cloudflare Pages
A practical guide to wiring up Decap CMS with a Hugo static site — GitHub backend, Cloudflare Pages Functions for OAuth, and bilingual collections.
The Zero-Allocation Secret: Context Pool and smartParams
How gortex's routing hot path reaches 0 allocs/op: sync.Pool Context reuse, a [4]string smartParams, an embedded responseWriter, and how to measure it.
The Segment-Trie Router: Matching Without Regex
Gortex routes with a segment trie, not regex: string splitting plus map lookups, O(segments) when no backtracking is needed, static > param > wildcard precedence, no allocations.
Struct-Tag Routing: reflect in Practice
How gortex builds its route table from struct tags with reflect: method names pick the verb, middleware inherits down groups, and bad config fails at startup.