The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm not much sure if I fully understand the usage scenarios of Delta Streaming in Fabric. I'm noticing information about this included in documentations and labs as a preparation for certification, so I think I may be missing something about this.
For example in this lab: https://microsoftlearning.github.io/mslearn-fabric/Instructions/Labs/03-delta-lake.html
The following line starts a readstream waiting for files in the folder:
iotstream = spark.readStream.schema(jsonSchema).option("maxFilesPerTrigger", 1).json(inputPath)
This raises lots of questions:
1) Is this continuous ? I tried a continuous execution in notebooks before and failed. The support told be the notebooks are not intended for continuous execution. In this way, this question: Is this continuous?
2) If it's continuous, it survives even if the notebook session is stopped, or does the notebook session becomes continuous when a streaming is started ?
3) If the session stops and the streaming persists, how to manage the streaming later? Stop? Restart?
4) If this is not continuous, what's the benefit of a streaming which is not continuous and will stop once the session stops ?
Thank you in advance for clarifications!
Kind Regards,
Dennnes
Solved! Go to Solution.
Hi @DennesTorres,
Thank you for your patience and for sharing your thoughts!
After reviewing the link you provided, Richbenmintz offered a comprehensive overview of Delta Streaming's capability to operate continuously. Their points about the persistence of the streaming job, even if the notebook session is stopped, are accurate. Streaming jobs can indeed continue running independently of the notebook session, enabling near real-time analytics.
Providing comprehensive insights and detailed analysis:
So, my response aimed to clarify the behavior of streaming in notebooks, but it may have caused some confusion. While it's true that if you don’t call awaitTermination() or stop(), the stream can keep running, I should have emphasized that the stream will indeed stop if the notebook session is terminated.
I appreciate your willingness to experiment further, as hands-on experience is invaluable for understanding these concepts. If this proves helpful, kindly Accept it as a solution and leave a "Kudos" so other members can easily find it.
Thank you.
Hello @DennesTorres,
Could you please confirm if your questions have been resolved? If they have, kindly mark the helpful response and Accept it as the solution. This will assist other community members in resolving similar issues more efficiently.
Thank you.
Hi,
It explains a lot, but I don't know. I will need to make a detailed experience in relation to this.
I posted this same question in other locations and received detailed answers as well, but opposite to this one. In this way, I will need to test to understand what's exactly the answer.
Any help analysing each other answer will be very welcome.
https://www.reddit.com/r/MicrosoftFabric/comments/1hp5hkn/what_are_the_scenarios_for_delta_streaming...
Hi @DennesTorres,
Thank you for your patience and for sharing your thoughts!
After reviewing the link you provided, Richbenmintz offered a comprehensive overview of Delta Streaming's capability to operate continuously. Their points about the persistence of the streaming job, even if the notebook session is stopped, are accurate. Streaming jobs can indeed continue running independently of the notebook session, enabling near real-time analytics.
Providing comprehensive insights and detailed analysis:
So, my response aimed to clarify the behavior of streaming in notebooks, but it may have caused some confusion. While it's true that if you don’t call awaitTermination() or stop(), the stream can keep running, I should have emphasized that the stream will indeed stop if the notebook session is terminated.
I appreciate your willingness to experiment further, as hands-on experience is invaluable for understanding these concepts. If this proves helpful, kindly Accept it as a solution and leave a "Kudos" so other members can easily find it.
Thank you.
Hi @DennesTorres,
Thanks for posting your query in microsoft fabric community forum.
Benefits of Continuous Delta Streaming:
I hope this clarifies your questions about Delta Streaming in Fabric. Should you have any further inquiries or require additional assistance, please do not hesitate to ask. If you find this information helpful, kindly Accept it as a solution and leave a "Kudos" to aid other members in locating it more easily.
Thank you.
Hi,
"
Could you provide details about how to do this, how to manage streaming jobs after the session finished ?
Hi @DennesTorres ,
That's a great follow-up question! Here's how you can manage Delta Streaming jobs after your notebook session finishes:
By following these methods, you can effectively manage your Delta Streaming jobs even after your notebook session has ended. If you find this helpful, please Accept it as a solution and consider leaving a "Kudos" so other members can locate it more easily.
Thank you.