Question 21
A system writes independent event records continuously. Operators want to append records and process them one at a time without loading one giant document. Which format property is most suitable?
Use JSON Lines so each line contains an independent record that can be appended, validated, and streamed.
Use one growing JSON array so consumers load the complete history before reading individual records.
Use a single JSON object keyed by event ID, rewriting the complete object whenever another event arrives.
Use daily compressed archives and rebuild the current archive whenever each new event arrives during operation.