SpinTheMic
Pro

Interview practice question

Service runs out of memory reading a file

Backend Engineering · Language Runtimes · Beginner

Your service crashes with out-of-memory errors when users upload large CSV files, because it reads the whole file into memory. How do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Stream instead of loading fully.
  • Process line by line or in chunks.
  • Upload directly to object storage.
  • Process asynchronously in workers.
  • Limit upload size.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics