@NandiniN , I couldn't able to see the setting for structured read stream batch size control during the  processing the data by using foreachbatch.

Is this possible to control the read stream by records count per each batch in structured streaming?