···11# prefect-server
2233-zig implementation of prefect server - single binary, ~5x faster than python.
44-55-## what works
66-77-- flow/flow_run/task_run lifecycle
88-- blocks (types, schemas, documents)
99-- variables
1010-- events (websocket ingest, persistence, broadcast with backfill)
1111-- dual database backends (sqlite, postgres)
1212-- dual message brokers (memory, redis)
33+zig implementation of [prefect server](https://github.com/prefecthq/prefect) - single binary, ~10x faster than python.
1341414-see `ROADMAP.md` for detailed implementation status.
55+supports sqlite/postgres for storage and memory/redis for messaging. see [ROADMAP.md](ROADMAP.md) for implementation status.
156167## usage
178189```bash
1919-just --list # show available commands
2010just dev # build and run with debug logging
1111+just test # run api tests against local server
1212+just docker-test # build and test in docker
2113just bench-compare # benchmark against python server
2214```
23152424-requires [zig 0.15](https://ziglang.org/) and [just](https://github.com/casey/just).
1616+requires [zig 0.15](https://ziglang.org/) and [just](https://github.com/casey/just). run `just --list` for all commands.
1717+1818+## testing
1919+2020+integration tests use the official [prefect python client](https://github.com/prefecthq/prefect) to validate API compatibility. see [`scripts/`](scripts/) for test harnesses.
25212622## configuration
27232828-| env var | default | description |
2929-|---------|---------|-------------|
3030-| `PREFECT_SERVER_PORT` | 4200 | server port |
3131-| `PREFECT_DATABASE_BACKEND` | sqlite | sqlite or postgres |
3232-| `PREFECT_BROKER_BACKEND` | memory | memory or redis |
3333-| `PREFECT_SERVER_LOGGING_LEVEL` | INFO | DEBUG, INFO, WARNING, ERROR |
3434-3535-see `docs/` for backend configuration details.
2424+see [`docs/`](docs/) for configuration details.