Skip to content

Bump zig version 0.16 support - #9

Open
im-ng wants to merge 60 commits into
mainfrom
experimental
Open

Bump zig version 0.16 support#9
im-ng wants to merge 60 commits into
mainfrom
experimental

Conversation

@im-ng

@im-ng im-ng commented Aug 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

im-ng added 30 commits September 9, 2026 22:17
Added rateLimiter for inbound calls based on IP
and incoming custom headers
Added fixed-window rate limiting for now
Rest handlers for the struct models
Logging
- Fix JSON formatter emitting byte-array repr of strings (use {s} for
  string-like args, {any} otherwise) in src/logger.zig.
- Enable LOG_FORMAT=json before config load so early logs (e.g. "Loaded
  config from file") are also structured.

Memory
- Decouple httpz request-body buffer pool from request.max_body_size. The
  pool previously defaulted its buffer size to max_body_size (32MiB) and
  pre-allocated 16 of them (~512MiB resident). Add ZERO_HTTP_LARGE_BUFFER_SIZE
  (1MiB) and ZERO_HTTP_LARGE_BUFFER_COUNT (16) so steady-state RSS drops to
  ~16-65MiB; larger bodies still grow on the per-request arena.

Benchmark
- bench harness now disables the inbound rate limiter by default
  (RATE_LIMIT_ENABLE=false) so it measures raw server throughput instead of
  tripping 429s from a single client IP.

Config docs
- Document RATE_LIMIT_*, ZERO_HTTP_LARGE_BUFFER_*, S3 (S3_REGION/BUCKET/
  ACCESS_KEY/SECRET_KEY/ENDPOINT), SQLite (SQLITE_PATH/CREATE/WRITE/THREADING),
  and outbound service SERVICE_<NAME>_* keys in configs/.env and config.md.

Also includes outbound HTTP client auth/circuit-breaker/retry enhancements,
pubsub (redis/mqtt/nats/kafka) improvements, auth/rbac middleware, metricz
and KV-store interface updates, container wiring, example .env refreshes, and
README/Makefile/build.zig tweaks.
for the framework mem usage
CLI mode helps to run one time job or
long running migrations
Upgrade autocrud to support duckdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant