Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 209 additions & 0 deletions frameworks/proa/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions frameworks/proa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@ publish = false
arrayvec = "0.7.8"
axum = "0.8.9"
deadpool-postgres = "0.14.1"
h3 = "0.0.8"
h3-quinn = "0.0.10"
http-body = "1"
http-body-util = "0.1"
hyper = { version = "1", features = ["http1", "server"] }
hyper = { version = "1", features = ["http1", "http2", "server"] }
hyper-util = { version = "0.1", features = ["service", "tokio"] }
itoa = "1.0"
libdeflater = "1"
mimalloc = { version = "0.1", default-features = false, features = ["v2"] }
proa = { git = "https://github.com/Proa-Labs/proa.git", rev = "141a0c7d88e312269f0715130f9fceb421dfe3a5", default-features = false }
quinn = { version = "0.11", default-features = false, features = ["runtime-tokio", "rustls-aws-lc-rs"] }
rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs", "std"] }
rustls-pemfile = "2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
socket2 = { version = "0.6", features = ["all"] }
sonic-rs = "0.5"
tokio = { version = "1", features = ["net", "rt", "time"] }
tokio = { version = "1", features = ["io-util", "net", "rt", "time"] }
tokio-postgres = { version = "0.7", features = ["with-serde_json-1"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["aws-lc-rs"] }

Expand Down
2 changes: 1 addition & 1 deletion frameworks/proa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ RUN cargo build --release --locked

FROM debian:bookworm-slim
COPY --from=build /work/target/release/httparena-proa /usr/local/bin/httparena-proa
EXPOSE 8080 8081
EXPOSE 8080 8081 8082 8443 8443/udp
ENTRYPOINT ["/usr/local/bin/httparena-proa"]
8 changes: 6 additions & 2 deletions frameworks/proa/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Proa

Proa compiles the Fortunes HTML component and serves HTTP/1.1 (with TLS 1.3 on `:8081` via `rustls`/`aws-lc-rs`) over thread-per-core Axum/Hyper workers with `mimalloc` v2, `SO_REUSEPORT`, `TCP_NODELAY`, `sonic-rs`, thread-local `libdeflater` gzip compression, and per-worker `deadpool-postgres` pools.
Proa compiles the Fortunes HTML component and serves HTTP/1.1, HTTP/2 (TLS + h2c), HTTP/3 (QUIC), gRPC, and WebSocket over thread-per-core Axum/Hyper workers with `mimalloc` v2, `SO_REUSEPORT`, `TCP_NODELAY`, `sonic-rs`, thread-local `libdeflater` gzip compression, TLS 1.3 (`TLS_AES_128_GCM_SHA256` via `aws-lc-rs`), `quinn` + `h3`, and per-worker `deadpool-postgres` pools.

On `/fortunes`, each request queries PostgreSQL, borrows row strings, appends the runtime row, sorts in byte order, and renders escaped HTML directly into one owned response buffer. The remaining HTTP/1.1 profiles exercise the same Axum/Hyper server stack (`sonic-rs` + `libdeflater` gzip on `/json/{count}`, zero-copy `/echo` over TLS, `/async-db`, `/baseline11`, `/pipeline`, and `/delay/{ms}`).
- **`:8080` TCP**: HTTP/1.1 (`/baseline11`, `/pipeline`, `/delay/{ms}`, `/json/{count}`, `/echo`, `/async-db`, `/fortunes`), WebSocket (`/ws`), and cleartext h2c gRPC (`/benchmark.BenchmarkService/GetSum`).
- **`:8081` TCP (TLS 1.3, ALPN `http/1.1`)**: `/baseline11`, `/json/{count}`, and zero-copy `/echo`.
- **`:8082` TCP (h2c)**: `/baseline2` and `/json/{count}`.
- **`:8443` TCP (TLS 1.3, ALPN `h2`)**: `/baseline2`, `/static/*` (read fresh from disk with `.br`/`.gz` precompressed selection), and TLS gRPC (`/benchmark.BenchmarkService/GetSum`).
- **`:8443` UDP (QUIC / TLS 1.3, ALPN `h3`)**: per-worker `SO_REUSEPORT` `quinn` + `h3` serving `/baseline2` and `/static/*`.
Loading