06
Your logs are arriving late and sometimes in the wrong order. How would you investigate that?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would first check whether the issue is in the producer, the transport layer, or the ingestion pipeline. Late or out-of-order logs often come from batching, retries, clock skew, or asynchronous delivery, so I would inspect timestamps and delivery guarantees end to end. To improve the system, I would keep logging asynchronous but add sequence metadata or event IDs where ordering matters. The reason I would do that is that logging should stay cheap for the application, but still be reliable enough to debug real issues. I would also think about buffering, backpressure, and what to do when the downstream store is temporarily unavailable.