Behavioral Notes
naati targets drop-in behavioral parity with NGINX 1.30.8 on the wire, in CLI output, and in logs. Keep these practical operational differences in mind when migrating:
On-Disk HTTP Cache Format
- naati uses its own crash-safe binary format for
proxy_cache_path,fastcgi_cache_path,uwsgi_cache_path, andscgi_cache_pathfiles. - Always start naati with a clean cache directory rather than reusing cached files written by NGINX.
- Temporary cache writes are created inside the cache directory so renames remain atomic on the same filesystem.
max_sizeaccounts file sizes rounded to 4 KB filesystem blocks.
Shared-Memory Zones & Buffering
- Shared-memory zones (TLS session cache, OCSP cache, sticky
learn,limit_req/limit_conn, and HTTP cache keys zones) use a lock-free fixed-capacity layout rather than NGINX’s global LRU slab allocator. Sizezone=name:sizewith normal operational headroom. - Buffered upstream responses stay in memory up to configured buffer limits rather than spilling to
*_temp_pathfiles on disk.
Dynamic DNS Resolution, IPv6 & Syslog
resolveupstream peer capacity scales with the configured upstreamzonesize (up to 1,024 resolved addresses per hostname).- IPv6 client listeners (
[::]:port, alwaysipv6only=on) andunix:sockets work out of the box; IPv6 upstream peers, IPv6 mail clients, IPv6listen ... quic, andlistenport-range syntax (addr:port1-port2) are on the roadmap. syslog:logging supports UDP targets (syslog:server=host:port); Unix domain socket syslog (server=unix:) is not yet supported.
HTTP/2, Pipelining & Built-In brotli_static
- HTTP/1.1 pipelined responses are coalesced when buffered. If a client aborts mid-pipeline, already-generated responses may be logged with their full body byte count.
- Reused HTTP/2 upstream keepalive connections handle late
RST_STREAMframes for completed streams cleanly instead of returning spurious502responses. - naati includes built-in
brotli_static on|off|always;support across HTTP/1.1, HTTP/2, and HTTP/3 without requiring an external C module.
Security, TLS & Signals
disable_symlinks off;is accepted; enablingdisable_symlinks(on,if_not_owner) fails closed at-tand startup. Write-side log and temporary opens avoid following symlinks.ssl_ech_fileand OpenSSLengine:private keys are not supported and are rejected at-t.SIGHUP(reload),SIGUSR1(log reopen),SIGQUIT(graceful drain), andSIGTERM/SIGINTare implemented;SIGUSR2/SIGWINCHlive binary upgrade is on the roadmap.
Platform Support
- Linux only (
io_uringwith automaticepollfallback) onamd64andarm64. macOS / BSDkqueueand Windows builds are not supported (run inside a Linux container or VM on macOS).