uplink icon indicating copy to clipboard operation
uplink copied to clipboard

feat: store events in sqlite, delete only on ack

Open de-sh opened this issue 4 months ago • 1 comments

Closes #

Changes

Why?

Trials Performed

$ time curl -X POST http://localhost:4321/event -d "{\"stream\": \"example\", \"sequence\": 1, \"timestamp\": $(date +%s%3N) }" -H 'Content-Type: application/json'

________________________________________________________
Executed in    3.38 secs      fish           external
   usr time    4.69 millis    0.00 micros    4.69 millis
   sys time    4.64 millis  834.00 micros    3.80 millis
  2024-09-28T19:02:22.734044Z  INFO uplink::collector::events: Starting uplink event server: 0.0.0.0:4321

  2024-09-28T19:02:24.201251Z  INFO uplink::collector::events: Event received on stream: example

  2024-09-28T19:02:27.909987Z DEBUG uplink::collector::events: Event has reached broker on topic: /tenants/edge/devices/1/events/example/jsonarry

de-sh avatar Sep 28 '24 18:09 de-sh