Micro batching is defined as the procedure in which the incoming stream of messages is processed by dividing them into group of small batches. This helps to achieve the performance benefits of batch processing; however, at the same time, it helps to keep the latency of processing of each message minimal.
![](/api/v2/epubs/9781787126497/files/assets/1ef51f30-0da4-4d3b-96e8-9ec683e7f58b.png)
Here, an incoming stream of messages is treated as a flow of small batches of messages and each batch is passed to a processing engine, which outputs a processed stream of batches.
In Spark Streaming, a micro batch is created based on time instead of size, that is, events received in a certain time interval, usually ...