Skip to main content

Module push

Module push 

Source
Expand description

Pushing own events to a place (E5 POST /v1/places/{p}/events, SPEC-ENGINE §3.4.4, C0 2.0 push_request / push_response).

A batch is not atomic: the server decides every event on its own. The engine keeps an event pending until the tail delivers it (the server log is the only source of truth); what a push answers only decides whether the event is sent again, waits, or moves to the failed queue.

Enums§

Next
What the engine does with a refused event.
Outcome
What the server decided for one pushed event.

Constants§

MAX_BATCH
Events per push.

Functions§

request
The E5 request body. Counts go along only with a complete window.
results
The per-event results of an E5 response, by event id, and the place epoch it reports.