Coder Social home page Coder Social logo

vatger / datafeed-cache Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 65 KB

The Datafeed Cache project is a wrapper around VATSIM's Datafeed service which provides basic caching functionality as well as failure detection

License: GNU General Public License v3.0

TypeScript 98.74% Dockerfile 1.26%

datafeed-cache's Introduction

Docker CI/CD Code-Style Check

Datafeed Cache

The Datafeed Cache project is a wrapper around VATSIM's Datafeed service which provides basic caching functionality as well as failure detection. Every response includes an extra flag failed which indicates whether the last update made by the server was successful, or whether the datafeed failed to update. If failed is true, then the previously cached datafeed is returned as the response in data.

The API Documentation can be found in the wiki.

If you wish to contribute and/or make changes, please check out our contribution guide here.

Contact

Name Responsible for Contact
Nikolas G. - 1373921 * git[at]vatger.de

Prerequisites

  • Node.js (https://nodejs.org/en)
  • Typescript (Optional)
    • Typescript is included in the project's dependencies, can however be installed globally using npm install -g typescript. This may however not be necessary in your situation and is more of a recommendation rather than a requirement.

Running the Application

Using Node.js

Assuming node.js is installed, running the application (locally) should be as simple as executing the following two commands.

  1. Run npm install
  2. Run npm run start:dev

Using Docker

Using the included docker-compose.yml you should simply be able to build and run the application. The included compose file exposes port 8000 on the host by default, however can be configured at will to fit any deployment scheme.

datafeed-cache's People

Contributors

ngoerlitz avatar

Stargazers

Teodor Gabriel Petrică avatar

datafeed-cache's Issues

Mark DF as failed if timestamps don't differ

Currently, the cache only marks the datafeed as "failed", if there has been a rapid decrease in pilots, or the request to VATSIM's API failed outright.
Add a check to verify that the last timestamp of the datafeed is different to the current one. To allow for some discrepancy, we should trigger this at around a minute or two. I.e. if the current time is >= 120secs off the last update_timestamp, then mark the DF as "failed".

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.