cruzj6 / game-pop-poller

Polls various services for game popularity data, and posts results to kafka topics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

game-pop-poller

This repository contains the poller for polling the various services reported on by game-pop. It posts the polling results to Kafka, to then be processed by other game-pop services. It is intended to be used as a scheduled AWS lambda function.

Currently Supported services:

  • Twitch

Set up following in .env file or environment:

  • KAFKA_HOST
  • KAFKA_PORT
  • TWITCH_CLIENT_ID
  • TWITCH_CLIENT_SECRET

Kafka data format

Data is posted in the following JSON format:

'twitch' topic:

{
  "gamename": <String-exact game name from twitch>,
  "timestamp": <Number-MS since UNIX Epoch at time of polling>,
  "viewers": <Number-Number of viewers at time of polling>
}

About

Polls various services for game popularity data, and posts results to kafka topics

License:MIT License


Languages

Language:JavaScript 100.0%