All Stories

Scaling Sidekiq: Advanced Job Deduplication and Multi-tenant Rate Limiting

Sidekiq’s contract is “push work, forget it,” but the moment you have an event bus that emits per-entity changes, you discover how literally Sidekiq honors that contract. Ten indexing jobs...

Propshaft Asset Pipeline: A Modern, Light Replacement for Sprockets

Sprockets was designed for the Rails era where the framework compiled CoffeeScript, SCSS, and ERB-templated JavaScript on the fly. That era is over. Modern browsers ship ES modules and CSS...

Designing a Low-Latency API Gateway Routing Tree in Go using Radix Trees

An API gateway sits in front of every upstream call, so its router is the hottest code path in the fleet. A linear scan over registered patterns is O(N) in...

Fine-tuning Embedding Models for Domain-Specific Vector Space Alignment

Off-the-shelf embedders understand generic language and nothing else. BGE-small and OpenAI’s Ada-002 encode “what is the refund policy” beautifully; ask them about an internal part number like OCT-4472-REV3 or a...

Custom Database Adapters and Connection Pools in Rails 7.2

We run a 12-server Puma fleet against a Postgres primary and two read replicas. For a long time our read/write splitting was manual: a sidecar script rewrote database.yml on deploy...

Go Garbage Collector Tuning: GOGC and GOMEMLIMIT Deep Dive

A 2GB Kubernetes pod running a Go service with default GOGC=100 has a GC that will happily let the heap double before it starts collecting. That is by design: the...