Skip to main content

Tiktuzki's space

Stare at the abyss long enough, and it starts to stare back at you...

What's in here

Working notes from building backends — mostly distributed systems, the infrastructure under them, and the maths a few of them depend on. Written to be re-read later, by me.

Production patterns

The failure modes that only appear under concurrency, retries and real traffic — and that pass review because they work fine in development. Grouped by the subsystem they bite: runtime, storage, transactions, data modelling, APIs, distribution, and payments.

  • Concurrency
  • Idempotency
  • Transactions
  • Payments
Browse by tier

43 pages

Operations

Running MicroK8s on one bare-metal node with no public IP: a NetBird overlay for reachability, Nginx Proxy Manager in front, per-person RBAC certificates, S3 backups, and a rebuild checklist for when it all has to come back from nothing.

  • MicroK8s
  • NetBird
  • ArgoCD
  • Patroni
  • RBAC

12 pages

System design

WebSocket gateway clusters built to fan out exchange events at low latency, MPC crypto-custody over NATS with authenticated encryption, recurring billing, and the SDD template the rest are written against.

  • WebSocket
  • NATS
  • MPC
  • Billing

8 pages

Cryptography

Elliptic curves from the group law upward — what ECC actually computes, how ECDSA signs with it, why secp256k1 picks the parameters it does, and the modular inverse the whole thing rests on.

  • ECC
  • ECDSA
  • secp256k1
Interactive point-addition demo

4 pages

Networking

rust-libp2p in practice: the transport and muxing stack, the protocols everything else is built on, NAT traversal when neither peer is addressable, and a decentralised p2p playground to try it in.

  • libp2p
  • Rust
  • NAT traversal
  • p2p

4 pages

Consensus

Why agreement across replicas is hard, and two protocols that manage it anyway — Raft, which elects a leader everyone trusts, and Viewstamped Replication, which changes view when that leader stops answering.

  • Raft
  • VSR
  • Replication

2 pages

Also hereInterview prep4Reference4Trading1Browse by tag121Archive4

Recently written

  1. K8s dev clusterBacking up the clusterGit already holds the desired state, so backup only has to capture what it does not — now via nightly S3 upload.
  2. K8s dev clusterRebuilding node1 from scratchA run-it-yourself checklist from bare MicroK8s to a working cluster, in the order things actually have to happen.
  3. K8s dev clusterkubectl credentials for a personal accountMicroK8s ships one shared admin cert. Minting named X.509 users so audit logs can tell people apart.
  4. System designWebSocket gateway clusterStreaming exchange events to end users: fan-out, backpressure, and what falls over first under load.
Blog archive