Snunit Scaling Down Http Services with Native and Nginx Unit
summary
SNUnit is a Scala Native driver for NGINX Unit that uses libunit, IPC and shared memory to run external native app processes and offload TLS, static files and routing. Demo builds a Twitter clone (tapir/http4s/cask on top of SNUnit, SQLite via porcupine) and runs, with reported C app throughput ~100–150k req/s versus Ember JVM ~40k and Scala Native often ~70% of JVM. Configuration hot-reloads via JSON, Docker image is minimal, development uses JVM hot loop with native CI checks, but a few platform quirks remain.
AI-written summary · about
