Interview practice question
Deserialising huge payloads spikes CPU and memory
Backend Engineering · Language Runtimes · Experienced
Your service receives batches of 50 MB JSON payloads, and parsing them causes CPU and memory spikes that affect other requests. What would you change?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Streaming parser instead of DOM.
- Smaller batches/pagination.
- Binary formats (Protobuf, Avro).
- Offload to async workers.
- Limit concurrent large requests.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.