Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prx/the-count
System for collecting data related to Exchange events
https://github.com/prx/the-count
Last synced: about 1 month ago
JSON representation
System for collecting data related to Exchange events
- Host: GitHub
- URL: https://github.com/prx/the-count
- Owner: PRX
- License: agpl-3.0
- Created: 2022-03-29T16:18:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T21:22:24.000Z (11 months ago)
- Last Synced: 2024-04-09T18:30:46.329Z (9 months ago)
- Language: JavaScript
- Homepage: https://exchange.prx.org
- Size: 158 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Count
The Count is a system for collecting data related to events that happen on [The Exchange](https://github.com/PRX/exchange.prx.org). For example, page views, playback of audio, etc.
### action.js
This is deployed as an AWS Lambda function as an endpoint of an API Gateway. Requests are made to that endpoint to record events. For example:
`example.com/action.gif?event=view`
Events are recoded to a Kinesis data stream.
### writer.js
A second Lambda function is triggered by that Kinesis data stream. It reads event data in batches, and writes them out, one event per line, to text files in a file system intended to be processed by [The Castle](https://github.com/PRX/TheCastle).