Spark Structured Streaming and Streaming Queries
Structured streaming:
Structured Streaming is a scalable and fault-tolerant stream processing engine built on the Spark SQL engine. You can express your streaming computation the same way you would express a batch computation on static data. The Spark SQL engine will take care of running it incrementally and continuously and updating the final result as streaming data continues to arrive
Reference:
https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html