Crates.io | lagging_server |
lib.rs | lagging_server |
version | 0.1.3 |
source | src |
created_at | 2024-08-01 08:57:24.262396 |
updated_at | 2024-08-01 08:57:24.262396 |
description | a simple web server with latency, for testing purposes |
homepage | https://github.com/CleverCloud/lagging_server |
repository | |
max_upload_size | |
id | 1321799 |
size | 57,322 |
A simple web server use to benchmark sozu. Originally written by @Keksoj
cargo install --path .
lagging_server --port 1054
You can run several ones, in several terminals, for instance:
lagging_server --port 1052
Et cætera
curl command | outcome |
---|---|
curl http://0.0.0.0:1054/api |
replies "Hey there!" |
curl http://0.0.0.0:1054/latency |
replies after a latency period, tells about it |
curl http://0.0.0.0:1054 |
should hang for 10 seconds |
curl -X POST -d "Do you here me?" http://0.0.0.0:1054/echo |
echoes back to you |
Try it!