May 17, 2021 Spark Programming guide
The best performance for Spark Streaming applications in the cluster requires some tuning. T his chapter describes several parameters and configurations to improve the performance of Spark Streaming applications. There are two things you need to consider:
Set the correct batch capacity (size) so that the data can be processed faster than the data is received