So you have a classic architecture with spark receiving events through a kafka topic via kafka-spark-connector, do something with it and send data out to the consumer. Are you using Spark structured streaming here with batch streaming? check
https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#structured-streaming-programming-guide HTH view my Linkedin profile <https://www.linkedin.com/in/mich-talebzadeh-ph-d-5205b2/> *Disclaimer:* Use it at your own risk. Any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on this email's technical content is explicitly disclaimed. The author will in no case be liable for any monetary damages arising from such loss, damage or destruction. On Fri, 28 Jan 2022 at 22:14, Amit Sharma <resolve...@gmail.com> wrote: > Hello everyone, we have spark streaming application. We send request to > stream through Akka actor using Kafka topic. We wait for response as it is > real time. Just want a suggestion is there any better option like Livy > where we can send and receive request to spark streaming. > > > Thanks > Amit >