Simple test tool for sending high volume of documents at a high rate to a Ditto collection. This was originally developed to support testing of BLE meshes on Linux ARM boards - e.g., Raspberry Pi and Jetson computers.
Once you have this repo cloned:
- Create a
./.env
file with the appropriate BigPeer values:
APP_ID=
APP_TOKEN=
- Modify the interval/frequency in the
index.ts
file to tune how many writes per second. It is currently set for 10Hz or every 100ms.
By default only the BLE transport is enabled. The collection used is raw_data
.
- Compile with
tsc index.ts
Run with node index.js
Stop with ctrl-c
Testing the receive end was done with https://github.com/getditto-shared/ditto-to-redpanda
A 5-second "sleep" is used before upserts begin, to allow for the remote peers to connect via BLE. But, this also works if local upserts run, long before the receiver connects.
MIT - See LICENSE
file for details.