Architecture
Handbook
Sistem Informasi P3DN — Indonesia’s 143,980-certificate domestic-content registry rebuilt in Axum + Leptos 0.8 SSR, Golang CMS, and Cloudflare D1.
Chapters
01 · System Overview
Purpose, quality goals, C4 container view, and the Axum + Leptos + Go CMS + Cloudflare D1 stack.
02 · Workspace and Modules
Cargo workspace layout, Leptos app/server split, Cloudflare workers, and public route map.
03 · Request Lifecycle and Caching
Multi-layer caching from tkdn-edge and velocity_gate to html_cache, Cloudflare D1 edge_get(), and Neon.
04 · Security and PoW Defense
Self-hosted ALTCHA proof-of-work, constant-time MACs, fingerprinted buckets, CSP nonces, and target:sec logging.
05 · Deployment and CI Gates
Docker musl + cargo-chef builds, TKDN_BUILD deploy freshness, Criterion benchmarks, and CI verification.
Architecture Decision Records
ADR-0001 · Axum + Leptos SSR over client-only SPA
Why tkdn-web renders indexable HTML on the server and treats WASM hydration as progressive enhancement.
ADR-0002 · Cloudflare D1 read-through replica in front of Neon
Why eligible GET requests resolve at Cloudflare D1 (300s STALE_TTL) before touching Postgres.
ADR-0003 · Self-hosted ALTCHA PoW over third-party CAPTCHAs
Why scrape defense uses a self-hosted ALTCHA Proof-of-Work verifier with clearance promises.
ADR-0004 · Per-request DNS resolution and private-mesh transport
Why tkdn-edge resolves upstream hostnames per request over a dual-stack private mesh.