Posts
Two Ways to Wire a BFF: htmx Returns Partials, SvelteKit Goes JSON
One call chain, two front ends: htmx partials for admin tables where state lives on the server, JSON over SvelteKit when the client needs to hold state.
SvelteKit's Default SSR Worldview, and Where It Bites You
SvelteKit's SSR defaults are well-reasoned. They can also grind to a halt the moment your environment stops cooperating.
Svelte 5 Runes: Reactivity Out in the Open
Svelte 5 runes swap compiler-guessed reactivity for explicit reactive primitives. You trade a bit of memorisation for predictability.
Memory and Sync Primitives
Go zero-allocation needs escape analysis, sync.Pool reuse and the right primitive: atomic for one value, Mutex for a block of state, RWMutex if reads dominate.
HTML-first or SPA: Reset the Default, Skip the Holy War
The test is where state lives and whether interaction swaps content or drives local state; default to HTML-first and upgrade to the client only when you must.
A Thin BFF with Fastify
A BFF is a thin translation layer. Fastify v5's schema-driven validation and serialisation hold the boundary, with HMAC signing on downstream calls.
Why BFF Still Earns Its Keep in 2025
A BFF is not a fashionable layer. It is where you make plain who faces the browser, who faces the backend, and who carries the risk.