Giter Site home page Giter Site logo

flightaware-firehose's Introduction

FlightAware Firehose

An example consumer of FlightAware's firehose data utilizing Node and its TLS socket toolset.

Start-Up Instructions

  1. Install NodeJS (developed on 8)
  2. npm install
  3. npm start

When developing and on start the following exception might be thrown.

error: [Firehose][TLS Data] Error connecting : Error: Maximum simultaneous connection limit for account exceeded.

In this case, edit the 'project.config.js' file and locate the 'development.firehose.hostname' value. Remove '-test' from the value which turns the URI into the production URI.

Notes

  • An configurable interval starts up to check a few abort and reconnection flags. If the abort flag has been set (authorization failed, socket error thrown) the interval loop will check for it and the process will exit out. If the reconnection flag has been set (socket timeout) the interval loop will check for it and the socket will try and be reestablished.
  • Winston logging is used along with its daily rotate mechanisms.
  • A 'pitr' check (can be turned off via config) and logging outouts are in place to see if the socket is keeping up with data volume. The value itself is of no concern unless it starts to increment/climb and shows no signs of decrementing. If the value is climbing than it is assumed the socket isn't keeping up with the data and rate limiting might need to be configured when establishing the socket via the handshake command.

flightaware-firehose's People

Contributors

cmwood avatar conej730 avatar pm-conej avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

flightstats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.