Project X interview question

Batch and streaming, when to use each one?