basics for streaming data