0.2.1 ā€¢ Published 3 years ago

@posterboy/aws-region-latency-checker v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Welcome to @posterboy/aws-region-latency-checker šŸ‘‹

Version Documentation Maintenance License: MIT

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

šŸ¤ 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