@raydiant/device-events-client
v0.1.3
Published
Client for shipping Raydiant device events
Downloads
11
Readme
device-events-client
Client for shipping device events
Offline storage
Each event is estimated around 700 bytes.
Assuming one playback start/stop (2 events) every 15 seconds, in one hour we will have 480 events.
Given this, the default retry buffer size is 500 events to roughly fit 1hr of playback into the buffer.
The storage write queue is 24 to roughly fit 1 day of playback into memory before being written to disk.
The storage max count is 400 to fit well over over 2 weeks of playback data onto disk (336).
The expected mem/disk usage is:
- retry buffer: 500 events * 700 bytes = 350KB mem
- storage write queue: 24 * 500 * 700 = 8.4MB mem
- storage max count: 400 * 500 * 700 = 140MB disk