Skip to content
obviyusPublic

About

A TUI app to ping all AWS regions around the world.

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Latest commit

 

History

86 Commits

Folders and files

Repository files navigation

pong

pong-demo

Which AWS region is actually closest to you? pong pings all 33 of them at once and shows a live, self-sorting latency table right in your terminal.

Features

  • Concurrent HTTP HEAD probes across 33 AWS regions — one worker thread per region
  • Live TUI table, always sorted by lowest average latency
  • Rolling min / avg / max / stddev / p95 / p99 via fixed-capacity ring-buffer percentiles
  • Optional warmup so the numbers settle before you read them

Statistics use the latest 128 successful probes per region. Last shows -- when a probe fails; its previous statistics remain visible, and the region moves below regions with successful readings. The sample count tracks all successful probes since warmup ended.

Build and run

cargo run                 # start pinging
cargo run -- --warmup 5   # let pings settle for 5s first
cargo run -- --help

Quit with q or Ctrl-C. Prebuilt binaries (Linux x86_64 / aarch64, macOS aarch64) ship on each release.

Each request has a two-second timeout. Quitting restores the terminal immediately, then waits for active requests to finish.

How it works

Each region gets a thread that fires a HEAD at https://dynamodb.<region>.amazonaws.com/ping every second — DynamoDB's health endpoint makes a conveniently ubiquitous latency target. Workers share one HTTP client and keep their own sample buffers. They publish snapshots for the table and signal updates through a bounded channel. Written in Rust with ratatui + crossterm.

About

A TUI app to ping all AWS regions around the world.

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages