prefect server in zig
Zig 77.0%
Shell 5.5%
Just 0.7%
Dockerfile 0.3%
Other 16.6%
49 1 0

Clone this repository

https://tangled.org/zzstoatzz.io/prefect-server https://tangled.org/did:plc:xbtmt2zjwlrfegqvch7fboei/prefect-server
git@tangled.org:zzstoatzz.io/prefect-server git@tangled.org:did:plc:xbtmt2zjwlrfegqvch7fboei/prefect-server

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

prefect-server#

zig implementation of prefect server - single binary, ~3x faster, ~20x less memory.

supports sqlite/postgres for storage and memory/redis for messaging. see ROADMAP.md for implementation status.

usage#

just dev           # build and run with debug logging
just test          # run functional tests (requires running server)
just bench-compare # benchmark zig vs python (throughput, latency, memory)
just docker-test   # build and test in docker

requires zig 0.15 and just. run just --list for all commands.

testing#

functional tests (scripts/test-api-sequence) - verify API correctness by exercising all endpoints. includes scheduler integration tests with intentional delays.

performance benchmark (scripts/benchmark) - measure throughput (requests/second), latency percentiles (p50/p95/p99), and memory usage.

just bench         # benchmark zig server
just bench-compare # compare zig vs python
just bench-matrix  # test all db 脳 broker combinations

docker#

published to atcr.io (AT Protocol container registry):

docker pull atcr.io/zzstoatzz.io/prefect-server:latest
docker run -p 4200:4200 atcr.io/zzstoatzz.io/prefect-server:latest

to publish:

just docker-publish           # push :latest
just docker-publish v0.1.0    # push specific tag

configuration#

see docs/ for configuration details.