Backend & API engineer

[ ARTICLES ] 5 written from the running systems

Articles

Backend & API engineering — payments, gateways, market data

Each project got one article: what it is, the problem it prevents, why the stack is what it is, how a request moves through it, what I measured, the defects I found by running it, and what I would fix next.

5Articles
14Captured images
31 minTotal reading time
5+ yrsProduction backend

[ 01 ] THE ARTICLES

Pick one and read it end to end

Every number is quoted from the repository or from a run I did myself. Where a repository publishes nothing, the article says that too.

routre

01

A Local LLM Gateway That Cuts Agent Token Bills

routre is one static Go binary between your coding agents and every LLM provider. It compresses the tool output that dominates agent traffic, replays identical requests from cache, and fails over to the next provider when one is busy — while holding the API keys so the client never sees them.

StackGo 1.26, standard library only — no Node, Python, Postgres or Redis
Read~4 min · 2 images

durable-agents

02

Agents That Survive a Crash

A local agent fleet you drive from Telegram: one daemon owns the durable state, so a dropped long poll, a killed process or a lost network costs you nothing. Agents can message each other, run on schedules, edit their own system — and there is no browser left to reload.

StackNode + TypeScript (packages/cli · packages/core · packages/telegram) · one daemon over a 0600 Unix socket · Telegram Bot API · SQLite via @earendil-works/pi-durable 1.3.0
Read~12 min · 1 images

trading-suite

03

A Stock Screener That Refuses to Buy

Most screeners answer with a list. This one answers with a verdict, the measured evidence behind it, and often no. Six screens, a FastAPI backend and a data check that outranks every signal.

StackPython 3.11+ + FastAPI · SQLite (WAL) · Vite + React 19 + TanStack Router · yfinance / IDX
Read~5 min · 4 images

payment-system

04

One Go Binary Instead of Four Java Services

This payment system used to be four Java microservices on Kafka, Mongo and Zookeeper. It is now one Go binary, two Postgres schemas, and an outbox table doing the job the message broker used to do. All five containers start with one command.

StackGo (net/http stdlib) · PostgreSQL 15 · Redis 7 · Next.js portal · Docker Compose
Read~5 min · 3 images

the-gateway

05

An API Gateway That Keeps JWTs Out of the Browser

The Gateway is a small API-management console: define the upstream APIs you call, allowlist what may reach them, and test them from the UI. The interesting part is not the CRUD. It is that the session token never becomes readable by a single line of browser JavaScript.

StackNext.js 15 (BFF) · Go 1.26 + chi + pgx · PostgreSQL 15 · Docker Compose / Kubernetes
Read~5 min · 4 images