Description
Given this is intended to be a log, the use of JSON Lines might be useful. Logs are the precise use of case of JSON Lines.
By using JSON Lines, the log can be extended with each entry, vs. being re-written on every update. Further, those that are getting an update of a log they have already processed can request (where supported -- e.g. using HTTP header parameters) from the point they have already received. Given the previousEvent
hash, the log reader would know if there was a problem in the receipt. The log reader could cache either the entire log, adding on the new entries, or they could retain the (implementation specific) state of their processing, and continue processing the new log entries.
The current format precludes that type of partial file retrieval.