Engineering Notes

Short working notes on Linux networking, PostgreSQL indexing, and reproducible Python services.

Linux TCP BBR & Socket Buffer Baseline

Updated 2026-11-18 · Systems

For long-distance WAN links with moderate RTT, pairing the fq packet scheduler with bbr congestion control and 16 MB socket buffers avoids bufferbloat while keeping single-stream throughput steady.

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216

Time-Series Partitioning Checklist in PostgreSQL 16

Updated 2026-11-04 · Databases

When storing OHLCV candlestick series, partition by calendar month on the UTC timestamp column and keep BRIN indexes for archival partitions to cut index footprint by over 90% compared to B-tree.

Deterministic asyncio Backoff Pattern

Updated 2026-10-22 · Python

Always combine capped exponential backoff with full jitter on WebSocket reconnect loops to avoid synchronized reconnect storms after upstream maintenance windows.