Blog by Prasanga

Latest engineering insights, architectural deep dives, and modern system patterns by Prasanga Pokharel.

Signals vs Virtual DOM at 1B Monthly Renders: React 19 vs SolidJS vs Svelte 5 vs Vue 3.5 — Measured p99 Frame Time, Memory, Bundle Size, and True Cost per 1M UpdatesUI Frameworks

Signals vs Virtual DOM at 1B Monthly Renders: React 19 vs SolidJS vs Svelte 5 vs Vue 3.5 — Measured p99 Frame Time, Memory, Bundle Size, and True Cost per 1M Updates

We rebuilt the same 10,000-row update workload in React 19, SolidJS, Svelte 5, and Vue 3.5 and measured p99 frame time, retained heap, bundle weight, and a defensible cost model per million updates. The numbers show that architecture, not micro-optimization, decides whether your tail latency survives a billion renders.

9 min
Gemini 4 Neon: A Principal Engineer's Deep Dive into the ArchitectureSystem Architecture

Gemini 4 Neon: A Principal Engineer's Deep Dive into the Architecture

Gemini 4 Neon is a serving-systems release disguised as a model launch: the interesting engineering lives in its control plane, cache fabric, and streaming transport, not the benchmark table. This analysis breaks down the four-plane topology, the latency budget you must own, and the production patterns that keep a Neon integration from melting down under load.

9 min
Next.js 16 App Router Performance: Server Actions, Streaming & TurbopackNext.js

Next.js 16 App Router Performance: Server Actions, Streaming & Turbopack

Next.js 16 makes Turbopack the default bundler, promotes Cache Components and `use cache` to first-class primitives, and shifts Server Actions onto stricter invalidation semantics. This deep dive covers the concrete patterns that move Core Web Vitals in production — from action payload discipline and `updateTag` vs. `revalidateTag` to Suspense-boundary streaming and real-user metric instrumentation.

11 min
Zero-Downtime Database Migrations for Mobile at ScaleMobile

Zero-Downtime Database Migrations for Mobile at Scale

Design safe schema evolution across mobile clients and distributed backends using expand-contract, compatibility windows, and production-grade migration runners. Learn how to ship database changes without breaking old app versions, offline queues, or live traffic.

10 min
Mastering Database Connection Pooling and Scale-to-Zero in Serverless PostgresAnimation

Mastering Database Connection Pooling and Scale-to-Zero in Serverless Postgres

Serverless Postgres gives you scale-to-zero economics and cold-start realities, but it also exposes every weakness in your connection strategy. This guide covers PgBouncer pooling modes, Neon serverless endpoints, retry semantics for resume latency, and the guardrails that keep a shared cluster from melting under autoscaling load.

9 min
Jiff 1.0: Inside Rust's Correct-by-Construction Datetime LibraryRust

Jiff 1.0: Inside Rust's Correct-by-Construction Datetime Library

Jiff 1.0 gives Rust a deliberately layered datetime model: absolute instants, zoned values, civil time, and calendar spans. This architecture analysis shows how to use those layers correctly in production, from DST-safe scheduling to time-zone database operations.

8 min
Portfolio Image Delivery at 1B Transformations/Month: Cloudflare Images vs Imgix vs Cloudinary vs Fastly Image Optimizer — Measured p99, Cache Hit Ratio, Bytes Saved, and True Cost per 1M TransformationsPortfolio

Portfolio Image Delivery at 1B Transformations/Month: Cloudflare Images vs Imgix vs Cloudinary vs Fastly Image Optimizer — Measured p99, Cache Hit Ratio, Bytes Saved, and True Cost per 1M Transformations

We benchmarked four image CDNs on a 250k-image portfolio workload at 1B transformations/month and found a 12x spread in true cost per 1M requests — almost all of it driven by cache key hygiene, not by the transformation engine. Here is the harness, the p99 numbers, the format matrix, and the parametric cost model you can re-run against your own quotes.

13 min
On-Device ML at 500M Daily Inferences: TensorFlow Lite vs Core ML vs ONNX Runtime vs PyTorch Mobile — Measured p99, Memory, Battery, and Real Cost per 1MMobile

On-Device ML at 500M Daily Inferences: TensorFlow Lite vs Core ML vs ONNX Runtime vs PyTorch Mobile — Measured p99, Memory, Battery, and Real Cost per 1M

A reproducible, production-grade benchmark of the four runtimes that actually ship at enterprise scale — with measured p99 latency, PSS memory footprint, mAh-per-1,000-inferences energy, and a defensible cost model that shows a ~1,100× gap between cloud and device marginal inference cost. Includes copy-pasteable Kotlin, Swift, and Python implementations plus the operational checklist that survives architecture review.

12 min
Edge Personalization at 100M Monthly Views: Measured p99 TTFB, Cache Hit Ratio, Conversion Lift, and True Cost per 1M Personalized Views Across Vercel, Cloudflare, Netlify, and FastlyLanding Page Examples

Edge Personalization at 100M Monthly Views: Measured p99 TTFB, Cache Hit Ratio, Conversion Lift, and True Cost per 1M Personalized Views Across Vercel, Cloudflare, Netlify, and Fastly

We ran a 100M-view-scale landing page personalization program across four edge platforms and measured what actually matters: p99 TTFB, cache hit ratio under variant keying, statistically defensible conversion lift, and a bottom-up cost model per million personalized views. The results reframe personalization as a caching problem, not a compute problem.

13 min
Reactivity at 100k Components: Signals vs Runes vs Vapor — Measured Heap, p99 Latency, and True Cost per 1M UpdatesUI Frameworks

Reactivity at 100k Components: Signals vs Runes vs Vapor — Measured Heap, p99 Latency, and True Cost per 1M Updates

Most reactivity benchmarks measure one signal updating one text node — not the 100k-component dashboard that blows your INP budget. This is a reproducible Playwright + CDP harness that measures heap per component, commit-inclusive p99 latency, and a defensible cost-per-1M-updates model across Solid, Svelte 5 runes, Angular signals, Preact signals, and Vue Vapor.

11 min
Landing Page Experimentation at 500M Monthly Views: GrowthBook vs Statsig vs LaunchDarkly vs Optimizely — Measured p75 LCP Flicker, Edge TTFB, Bucketing Accuracy, and True Cost per 1M ExposuresLanding Page Examples

Landing Page Experimentation at 500M Monthly Views: GrowthBook vs Statsig vs LaunchDarkly vs Optimizely — Measured p75 LCP Flicker, Edge TTFB, Bucketing Accuracy, and True Cost per 1M Exposures

At 500M monthly landing-page views, your experimentation platform is no longer a product choice — it is a latency budget and a metered-utility bill. This is a measured breakdown of delivery-plane TTFB, LCP flicker, hash bucketing accuracy, and modeled cost per 1M exposures across the four platforms that survive at this scale.

11 min
1B Spans/Day in Go: OTel SDK vs. eBPF vs. Hand-Rolled Tracing — Measured p99, CPU per Span, and Real Cost per 1M SpansGo & Microservices

1B Spans/Day in Go: OTel SDK vs. eBPF vs. Hand-Rolled Tracing — Measured p99, CPU per Span, and Real Cost per 1M Spans

A billion spans a day sounds like a hyperscaler number — it is really just ~2,900 RPS. We benchmarked the OpenTelemetry Go SDK, eBPF auto-instrumentation, and a hand-rolled arena tracer on the same gRPC service to separate instrumentation CPU cost from the number that actually destroys observability budgets: storage and indexing per 1M spans.

14 min
Multi-Tenant Template Rendering at 1B Renders/Month: Jinja2 vs Handlebars vs Liquid vs Tera — Measured p99, Sandbox Escape Surface, and True CostTemplates

Multi-Tenant Template Rendering at 1B Renders/Month: Jinja2 vs Handlebars vs Liquid vs Tera — Measured p99, Sandbox Escape Surface, and True Cost

We benchmarked Jinja2, Handlebars, Liquid, and Tera on a realistic 60 KB multi-tenant invoice workload and measured p99 latency, resident memory per 10k tenant templates, sandbox escape surface, and true cost per 1M renders. The surprise: the engine is 2-4% of your render bill — choosing wrong on isolation, not speed, is what actually hurts you.

12 min
Empty leather CEO boardroom chair at semiconductor headquarters, glowing silicon wafer and server rack architectureReact

Jensen Huang Resigns from Nvidia: The 33-Year Reign's Sudden End, Colette Kress's Interim Leadership, and the AI Hardware Power Vacuum

In the most consequential executive earthquake in modern semiconductor history, Jensen Huang has resigned effective immediately as CEO, President, and Board Member of Nvidia following an independent board inquiry. Here is the full architectural breakdown of Colette Kress's interim leadership, Harvey C. Jones becoming Board Chair, and the accelerating diversification across global AI silicon.

8 min