Monitor the status of Ditto on the cloud and locally.
HTTP -> Big Peer -> Small Peer -> Big Peer -> CDC
> npm install
- Replace APP_ID and TOKEN in
index.ts
with your values. - Replace APP_ID in
heartbeat.sh
with your values. - Build index.js
> npm run build
Run the heartbeat. This script will send an HTTP request to the Big Peer every 10 seconds.
./heartbeat.sh
Run a small peer node that subscribes to the document updated via the HTTP API. It then updates the timestamp on that document to acknowledge receipt.
node index.js
Use with Change Data Capture to listen to all changes from the server-side.