'Calling REST API per microbatch in Spark Structured Streaming

Is there a way to make an external API call once for every micro-batch in Spark Structured Streaming app?[Non-continuous mode] Looking for a solution without foreachBatch approach as exactly-once semantics are altered.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source