Herpy API Gateway write in Rust
brew update
brew tap prongbang/homebrew-formulae
brew install herpy
cargo install herpy --git https://github.com/prongbang/herpy.git
docker pull prongbang/herpy:latest
rewrk -h http://127.0.0.1:8080/hello -t 12 -c 100 -d 60s
| Name | Latency.Avg | Latency.Stdev | Latency.Min | Latency.Max | Request.Total | Request.Req/Sec | Transfer.Total | Transfer.Rate |
|---|---|---|---|---|---|---|---|---|
| Direct | 1.96ms | 1.51ms | 0.03ms | 39.83ms | 3053635 | 50894.22 | 381.49 MB | 6.36 MB/Sec |
| Herpy | 3.03ms | 1.88ms | 0.11ms | 33.97ms | 1978253 | 32971.05 | 186.77 MB | 3.11 MB/Sec |
| KrakenD | 3.90ms | 1.62ms | 0.06ms | 65.20ms | 1539334 | 25656.21 | 344.99 MB | 5.75 MB/Sec |
version: "1"
metadata:
port: 8080
services:
- endpoint: "/users"
method: POST
backends:
- host: "https://httpbin.org"
path: "/get"
method: GET
- endpoint: "/posts"
method: POST
backends:
- host: "https://httpbin.org"
path: "/post"
method: POST
herpy -c herpy.yaml
docker run \
-p 8080:8080 \
-v "./herpy.yaml:/etc/herpy/herpy.yaml" \
--name herpy-api-gateway \
prongbang/herpy:latest
2024-03-23T16:20:32.967967Z INFO herpy::server: starting server on '0.0.0.0:8080' listen=0.0.0.0:8080
Content type
Image
Digest
sha256:339666ac9…
Size
45.3 MB
Last updated
about 2 years ago
docker pull prongbang/herpy