👋
Welcome to @posterboy/aws-region-latency-checker
Library for checking AWS regions latency. Based on super cool post https://blog.risingstack.com/measuring-http-timings-node-js/
🏠 Homepage
Install
npm install @posterboy/aws-region-latency-checker
Usage
Just import the library select the region and select the mode for latency resolution:
Modes:
- 'dns lookup'
- 'tcp connection'
- 'tls handshake'
- 'first byte'
- 'content transfer' (*default)
Implementations
- axios (*default)
- https
Example
import {checkLatencies,checkLatency} from '@posterboy/aws-region-latency-checker'
// use all available regions and default mode 'first byte'
const results = await checkLatencies()
// specify regions and mode
const results = await checkLatencies(['us-west-2','us-east-1'],'dns-lookup','https')
// check latency for a single region
const results = await checkLatency('us-east-1','dns-lookup')
Author
- Website: http://www.technogi.com.mx
- Github: @Technogi
- Email: carlos@technogi.com.mx
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a
📝 License
Copyright © 2021 carlos@technogi.com.mx.
This project is MIT licensed.
This README was generated with