0.2.1 ā¢ Published 3 years ago
@posterboy/aws-region-latency-checker v0.2.1
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
š¤ Carlos H
- 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 āļø if this project helped you!
š License
Copyright Ā© 2021 carlos@technogi.com.mx.
This project is MIT licensed.
This README was generated with ā¤ļø by readme-md-generator