Bump zig version 0.16 support - #9
Open
im-ng wants to merge 60 commits into
Open
Conversation
Fix mem leaks
Added load tests to validate mem leaks Added bench mark to capture rss
Added authentication provision for outbound calls
Expose metrics over custom port
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.
solr and duckdb)
for the framework mem usage
CLI mode helps to run one time job or long running migrations Upgrade autocrud to support duckdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.