Posts
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 in O(segments), 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.
Why Build a Kitchen-Sink Framework
Why gortex is a kitchen-sink framework: what a framework layer trades away once the goal shifts from one lean microservice to consistency across services.
Nuxt SSR and Nitro: Keeping the Server Boundary Clear
Nuxt SSR and Nitro routes are convenient, but convenience isn't architecture: that layer easily blends browser-facing aggregation with backend-facing risk.