Skip to content

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

License

Notifications You must be signed in to change notification settings

cruzj6/game-pop-poller

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published