@posterboy/aws-region-latency-checker
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i @posterboy/aws-region-latency-checker

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

12.6 kB

Total Files

14

Last publish

Collaborators

  • carlos_technogi