Streaming a Larger-Than-RAM XML File on One Machine

System Design · Karat · Easy

You need to process an XML file containing sensitive data. The file is bigger than the machine's available memory, and because of its sensitivity, all of the processing must happen locally on that one machine. Explain how you would work through this file without ever reading the entire document into memory at once. In your answer, address: how the parsing itself would proceed when the whole file cannot be held in RAM, which APIs or libraries you would rely on to do it, how…

Loading the rest of the question…