#Backend
5 articles — newest first.
- 8 min read
Unifying Twitch and YouTube Live Chat: Ordered, De-duplicated
Build a single, ordered, de-duplicated event stream from Twitch IRC and YouTube Live Chat with Hybrid Logical Clocks, watermarks, and idempotent delivery.
- 7 min read
Serverless local-first settings sync over LAN with Automerge + mDNS
Replicate user settings across devices on the same LAN without servers by combining Automerge CRDT sync messages with mDNS peer discovery and a tiny TCP transport.
- 8 min read
Zero-Account Auth: Device-Bound Identity + Capability Tokens
Build secure apps without accounts or an auth server: bind identity to device keys, mint PASETO capability tokens, and enforce DPoP for stateless, least-privilege access.
- 8 min read
WebSocket Telemetry at Scale: When One Process Isn't Enough
A single WebSocket server is a weekend project; streaming telemetry to thousands across instances broke for me on streamerOS — Redis pub/sub, rooms, coalescing.
- 7 min read
MongoDB Aggregation Pipelines: Stage Order Is the Win
Profiling a clinical API taught me MongoDB aggregation pipeline optimization lives or dies on stage order: $match first on indexes, $lookup join performance, then explain.