结构化流式处理:揭开任意有状态操作的神秘面纱.pdf

编号:139156 PDF 48页 2.94MB 下载积分:VIP专享
下载报告请您先登录!

结构化流式处理:揭开任意有状态操作的神秘面纱.pdf

1、Demystifying Arbitrary Stateful OperationsTaking the fear out of flatMapGroupsWithStateand applyInPandasWithStateAngela Chu,Databricks Sr.Solution Architect/Streaming SMEDatabricks2023My source data was already in the exact format I needed,and my consumers business requirements were all simple and s

2、traightforward to implement.-NobodyWhat well coverWhat are Arbitrary Stateful Operations?Summary of a real-world use caseThinking about flatMapGroupsWithState/applyInPandasWithStatelogicBreaking down the logic into its components data structures,initialization logic,steady-state logic and timeoutsIn

3、tegrate into your Spark Structured StreamStreaming best practices that applyAdditional things to keep in mindArbitrary Stateful OperationsSubstitute the word“Arbitrary”with“Custom”.Spark Structured Streaming has many built-in stateful operations(windowed aggregations,deduplication,etc)where with the

4、 use of watermarks the system automatically stores and manages data in-between microbatches.This data is known as the state.There are use cases that require more complex logic than is available in the built-in operations.In this case,users must be able to define custom state handling code to control

5、 what is stored in-between microbatches and how results are computed.These are arbitrary stateful operations.What are they?Customer Use CaseWhen a transaction record is received for a user,the count of transactions for that user that occurred within the last 5 minutes of the transaction time is calc

6、ulated and written to a table.Only the current count for a given user is kept.If no transactions are received for a user,the count should automatically go down.An ML model uses the count to determine if too many have occurred within the last 5 minutes.Transaction count within the last 5 minutesCusto

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(结构化流式处理:揭开任意有状态操作的神秘面纱.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠