◉ Pulse
chulingera2025 avatar
#52 today ▲ 45

chulingera2025/raddy

Rust Other Apache-2.0

A minimal high-performance reverse proxy gateway in Rust, built on Cloudflare Pingora.

Last active 3 months ago Created Aug 5, 2026
Stars
32
Today
+9
Forks
0
Quality
95/100
Momentum
40

README

Fetched from GitHub on Nov 15, 2026, 9:24 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to chulingera2025/raddy and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. Licensed under Apache-2.0. Copyright / takedown policy.

Raddex

CI License Release Rust

Chinese documentation

Raddex is a small reverse-proxy gateway written in Rust and built on Cloudflare Pingora. It combines a readable, Caddy-style configuration file with Pingora's multi-threaded proxy engine, shared upstream pools, and memory safety.

The short version

Use Raddex when you want one binary to handle HTTP/HTTPS routing, automatic TLS, static files, upstream load balancing, and selected TCP/UDP workloads without turning the configuration into application code.

Raddex's defining rule is simple: directives in a site block are interpreted in the order you write them. Terminals decide who serves the request; modifiers and guards describe how that terminal behaves. The model is explicit rather than dependent on a hidden ordering table.

Release surface

Raddex v0.3.6 is a pre-1.0 release. The following table describes what is implemented and tested in this release; it is not a promise that every public API is already frozen.

Area Included Boundary
HTTP reverse proxy HTTP/1.1, downstream HTTP/2, WebSocket upgrades, load balancing, health checks Rate limits are per process
TLS and ACME HTTP-01, Cloudflare DNS-01, TLS-ALPN-01, static certificates, internal certificates, mTLS TLS-ALPN-01 is for eligible ACME sites on port 443 and cannot be combined with DNS-01; other DNS-01 providers are not included
Upstream protocols HTTP/1.1, https://, h2://, h2c:// h2c:// requires prior-knowledge HTTP/2 upstreams
Site routing Multiple domains, IPv4/IPv6, exact and one-label wildcard matching Wildcards do not match the apex or multiple labels
Layer 4 TCP, SNI passthrough, TCP TLS termination, UDP datagram proxying Transparent TCP and UDP handoff are Linux-only integrations
Operations Config check, SIGHUP reload, zero-downtime binary upgrade, JSON/Prometheus output Listener topology changes require a normal restart; upgrades require unchanged topology
QUIC / HTTP/3 UDP datagram passthrough HTTP/3 termination and routing require a separate QUIC service or sidecar

Five-minute local proxy

Install a release binary, or build from source, then start a local upstream:

python3 -m http.server 8080 --bind 127.0.0.1

Create Raddexfile:

example.local:8090 {
    reverse_proxy 127.0.0.1:8080
}

Validate and run Raddex in another terminal:

raddex check -c Raddexfile
raddex run -c Raddexfile

Send a request with the site Host header:

curl -H 'Host: example.local' http://127.0.0.1:8090/

raddex check performs the same configuration validation used by reload. Keep it in deployment scripts and CI before starting or reloading the service.

Where Raddex actually lands on performance

The repository includes a Docker comparison suite that runs Nginx, Caddy, and Raddex one at a time against the same origin, scenario matrix, TLS certificate, and resource limits. Every number below comes from one full run and is normalized against Nginx in its own scenario.

Summary: Raddex sits between Caddy and Nginx. It is substantially leaner than Caddy on every axis measured, and it does not match Nginx on raw throughput or per-request CPU. If you are replacing Nginx purely for speed, this data does not justify the switch; if you are choosing between Caddy-style configuration ergonomics and Nginx-style efficiency, that is the gap Raddex targets.

Medians across the nine scenarios, plus the one scenario that actually measures peak throughput (Nginx = 100%):

Metric Caddy Raddex Better is
Max stable throughput (concurrency scan) 39.7% 59.6% higher
p99 latency (median of 9 scenarios) 154.5% 116.6% lower
CPU per request (median) 274.7% 146.5% lower
Peak memory (median) 306.2% 174.0% lower

In absolute terms on the test machine, the concurrency scan peaked at 15 603 QPS for Nginx, 9 297 for Raddex, and 6 201 for Caddy. No target recorded a non-zero error rate in any scenario.

Two results worth calling out individually:

  • HTTPS with HTTP/2 multiplexing. At a 4 000 QPS target, Nginx and Raddex both sustained it (4 008 QPS); Caddy reached only 1 008 QPS (25.1%) and used 6.5× Nginx's CPU per request.
  • Connection churn is Raddex's weakest scenario. p99 is 361% of Nginx (5.08 ms vs 1.41 ms) and worse than Caddy's 116%. Keep-alive workloads are fine; a workload that opens a fresh connection per request is not where Raddex is strong today.

Raddex beats Nginx in exactly one scenario — 1 MiB responses, at 45.8% of its p99 and 70.8% of its CPU per request.

How to read the full table

Seven of the nine scenarios drive a fixed request rate, so every target reports 100.0% throughput there — that is all three hitting the target rate, not a tie on capacity. Only the concurrency scan searches for maximum stable throughput, so it is the only throughput figure that means anything. A point counts as stable only at an error rate ≤ 0.1%.

What was measured, and what was not

  • Test machine: 10-core / 7 GiB Debian 12 host, Docker 29.7. Each proxy ran under a 2 CPU / 1 GiB limit, with Nginx at 2 workers and Raddex at 2 Pingora threads. oha 1.16.0 as the load generator; 10 s warm-up, 30 s measurement, 3 repetitions, aggregated by median.
  • Access logging is off for all three. This is fair — no target writes logs — but it means Raddex's access-log path is not exercised here, and it is not free: it serializes on one mutex and flushes per request. Enable it and expect a different profile than these numbers.
  • Not covered: ACME, caching, TCP/UDP, QUIC/HTTP3, and anything implementation-specific. Those need their own fairness definitions.
  • Relative only. The percentages are valid within a scenario on one machine and one run. Do not compare absolute QPS across machines, and re-run the suite on your own hardware before treating any of this as a capacity plan.

Reproduce it — the host needs only Docker Engine and Compose v2:

./bench/scripts/run.sh full

quick also exists, but it is a 3-second smoke test, not a comparable run. See the benchmark documentation for the full matrix and the per-scenario tables, and bench/ for the scenario definitions.

Relative maximum stable throughput

Layer 4 forwarding performance

Layer 4 proxying runs on a native Tokio data path (Raddex -> L4 Core -> Tokio -> TCP/UDP), bypassing Pingora entirely. The repository includes a Linux-only L4 benchmark in bench/l4/ comparing Nginx stream, Caddy layer4 (mholt/caddy-l4), Raddex L4, and Linux NAT / nftables. Every figure below comes from a 3-repetition full run on the same test machine (Nginx stream = 100%):

Scenario Metric Caddy Raddex Linux NAT
TCP throughput (64 KiB / 16 conns) Throughput 76.6% 156.5% 173.4%
TCP throughput (64 KiB / 16 conns) CPU / Memory 129.8% / 12.6% 64.4% / 9.3% — / —
TCP throughput (64 KiB / 64 conns) Throughput 89.2% 176.6% 225.5%
TCP throughput (64 KiB / 64 conns) CPU / Memory 112.4% / 25.4% 57.6% / 25.1% — / —
TCP connection rate (10K conns) Connects/sec 73.3% 84.6% 117.2%
TCP connection rate (50K conns) Connects/sec 86.1% 114.5% 456.8%
TCP connection rate (50K conns) CPU / Memory 131.8% / 118.1% 83.2% / 84.0% — / —
UDP flows (10K clients) Flow capacity 98.5% (1.51% err) 100.0% (0.00% err) 100.0%
UDP flows (10K clients) Memory 183.4% 52.2% —
TCP / UDP p99 latency p99 100% – 200% 100.0% 40% – 50%

Key findings:

  • TCP bulk throughput: Removing Pingora's buffered writer and per-chunk user-space flush allows Raddex to deliver 1.56× to 1.77× Nginx's throughput at ~60% of its CPU and a fraction of its memory.
  • Connection establishment rate: Native SO_REUSEPORT accept loops achieve 84.6% of Nginx at 10K connections (outperforming Caddy's 73.3%), and 114.5% of Nginx at 50K connections with the lowest error rate among user-space proxies.
  • UDP flow capacity: Per-thread SO_REUSEPORT datagram socket fan-out eliminates kernel receive-buffer overflow, reaching 100.0% capacity with 0.000% error rate, matching Nginx.
  • Memory footprint: Raddex maintains the lowest memory footprint among all user-space targets across every scenario (typically 3% to 70% of Nginx, and 2× to 10× leaner than Caddy).

Test environment:

  • Machine: 10-core Intel Xeon CPU E5-2650 v2 @ 2.60 GHz, 8 GiB RAM, Debian 12 (Linux 6.1.0-31-amd64), Docker 29.7.2.
  • Limits: 2.0 CPUs, 1 GiB memory per container; Nginx 2 workers, Raddex 2 worker threads.
  • Methodology: 3 repetitions, container restart between warmup and measurement, median aggregation.

Reproduce with:

./bench/l4/scripts/run.sh full

Layer 4 forwarding benchmark overview

A production-shaped site

{
    acme_email ops@example.com
    trusted_proxies 10.0.0.0/8 192.168.0.0/16
}

:80 {
    redir https://{host}{uri} permanent
}

api.example.com {
    rate_limit remote_ip 100r/s burst=200

    handle /static/* {
        root /var/www/html
        file_server
        encode zstd gzip
    }

    reverse_proxy {
        to https://10.0.0.11:8443 https://10.0.0.12:8443
        tls_servername api.internal
        health_check {
            interval 5s
            timeout 2s
        }
    }
}

The default ACME method is HTTP-01. Use dns_challenge when port 80 cannot be reached, or tls_alpn_challenge when the ACME server can reach TCP 443 and the site is eligible for TLS-ALPN-01.

If either backend uses a private CA, add tls_ca <path> to the reverse_proxy block and ensure the file exists before running raddex check.

Documentation map

Build from source

cargo build --release --locked
./target/release/raddex --version

Stable Rust, OpenSSL development libraries, and CMake are required for a source build. Prebuilt release artifacts currently target Linux GNU on x86_64 and aarch64.

Project status

The released tree contains the HTTP/TLS gateway, the Raddexfile parser and validator, automatic HTTPS, the migration tool, observability, and the tested TCP/UDP extensions described above. Work that depends on a separate QUIC transport is intentionally kept outside the Pingora process. See the capability document before deploying a protocol that needs termination rather than passthrough.

License

Apache-2.0, matching Pingora.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Aug 5, 2026

first spotted on the list

Best rank

#17

highest position reached

Appearances

3

times on the trending list

Quality score

95

out of 100

Momentum

40

trend strength indicator

Star velocity

0.31

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
1520253035chulingera2025/raddy · Aug 5, 2 PM UTC: 20 starschulingera2025/raddy · Aug 5, 7 PM UTC: 23 starschulingera2025/raddy · Aug 6, 2 AM UTC: 32 stars2 PM8 PM2 AM

Rank history

position on trending · lower is better
#1#10#20#30#40#50#60Aug 5, 2 PM UTC: rank #17Aug 5, 7 PM UTC: rank #58Aug 6, 2 AM UTC: rank #522 PM8 PM2 AM

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/chulingera2025/raddy" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="chulingera2025/raddy — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

chulingera2025/raddy stars badge
Markdown
[![chulingera2025/raddy](https://www.notionpulse.cc/api/badge/chulingera2025/raddy.svg)](https://www.notionpulse.cc/repo/chulingera2025/raddy)
HTML
<a href="https://www.notionpulse.cc/repo/chulingera2025/raddy"><img src="https://www.notionpulse.cc/api/badge/chulingera2025/raddy.svg" alt="chulingera2025/raddy stars badge" /></a>

Repository of the Day

#17 Repository of the Day

Repository of the Week

#17 Repository of the Week

Repository of the Month

#17 Repository of the Month