A Practical Guide to Broadcast State in Apache Flink
什麼事廣播狀態
廣播狀態可以用於以特定的方式組合和聯合兩個事件流。第一個事件流被廣播給運算元的所有並行例項,這些例項將他們維持在狀態中。 其它事件流將不會被廣播,但是會被髮給同一個運算元的個別例項,並與廣播流事件一起處理。新的廣播狀態非常適合需要加入低吞吐量和高吞吐量流或需要動態更新其處理邏輯的應用程式。我們將使用後一個用例的具體示例來解釋廣播狀態,並在本文的其餘部分更詳細地展示其API。
廣播狀態的動態模式評估
想象一下一個電子商務網站捕獲所有使用者的互動作為使用者行為流。運營該網站的公司對於分析互動以增加收入,改善使用者體驗,以及檢測和防止惡意行為很感興趣。該網站實現了一個流應用程式,用於檢測使用者事件流上的模式。但是,公司希望每次模式更改時都避免修改和重新部署應用程式。相反,應用程式在從y模式流接收新行為時獲取第二個模式流並更新其活動模式。在下文中,我們將逐步討論此應用程式,並展示它如何利用Apache Flink中的廣播狀態功能。
我們的示例應用程式獲取了兩個資料流。第一個流在網站上提供使用者操作,並在上圖的左上方顯示。使用者互動事件包括操作的型別(使用者登入,使用者登出,新增到購物車或完成支付)和使用者的ID,他們都被各種顏色進行編碼。在我們的圖示中的使用者動作事件流包含使用者1001的登出動作,其後是使用者1003的支付完成事件,以及使用者1002的“新增到購物車”動
相關推薦
A Practical Guide to Broadcast State in Apache Flink
什麼事廣播狀態 廣播狀態可以用於以特定的方式組合和聯合兩個事件流。第一個事件流被廣播給運算元的所有並行例項,這些例項將他們維持在狀態中。 其它事件流將不會被廣播,但是會被髮給同一個運算元的個別例項,並與廣播流事件一起處理。新的廣播狀態非常適合需要加入低吞吐量和高吞吐量流或需要動態更新其處理邏輯的應用程式
A definitive guide to conditional logic in JavaScript
The Complete Truth TableCaveatsThere are two big caveats to treating JavaScript code like propositional logic: short circuiting and order of operations.Sho
A Complete Guide to Usage of ‘usermod’ command– 15 Practical Examples with Screenshots
check point pen should password basic specific define config https://www.tecmint.com/usermod-command-examples/ ------------------------
A guide to color accessibility in product design
A guide to color accessibility in product designThere’s a lot of talk about accessible design, but have you ever thought about color accessibility?Recently
A guide to color accessibility in product design(產品設計中的色彩易用性指南)
Recently, a client brought in a project with very specific, complex implementations of an accessible color system. This opened my eyes not only to how impo
A Comprehensive Guide to Data Exploration
Introduction There are no shortcuts for data exploration. If you are in a state of mind, that machine learning can sail you away from
A Simple Guide to the Versions of the Inception Network
The Inception network was an important milestone in the development of CNN classifiers. Prior to its inception (pun intended), most popula
Flutter: A Hitchhiker Guide to Stateless and Stateful Widgets
Flutter: Stateless and Stateful Widgets Flutter: A Hitchhiker Guide to Stateless and Stateful Widgets https://proandroiddev.com/flutt
A beginners guide to keeping your crypto safe
The decentralised, unregulated and anonymous nature of cryptos means that it’s essentially impossible to track them down if they go missing or are stolen.T
What is a Security Token? A Comprehensive Guide to How They Work and Their Impact
There’s been a lot of talk about security tokens recently. But what is a security token in the first place? How do they work? And how might they impact you
A Basic Guide to Choosing the Right Tech Stack for Client Work
A Basic Guide to Choosing the Right Tech Stack for Client WorkUnderstanding the impact of choosing the right tech stack is a major factor of success for fr
A Field Guide to Bad Faith Arguments
Bad faith arguments are common in politics. And while they’ve always been part of political culture, they’re much more rampant on social media. It’s easy t
The quick, practical guide to picking colors for your designs
Having a beautiful color palette doesn’t matter if people can’t figure out how to navigate your design.Anyone can pick great colors, but using colors to gu
A beginners guide to Cryptosecurity
A Beginners Guide to CryptosecurityImagine you lost all your coins. Not a particularly nice thought, right? Staying protected in today’s cyber world is ver
A Quick Introduction to Text Summarization in Machine Learning
A Quick Introduction to Text Summarization in Machine LearningText summarization refers to the technique of shortening long pieces of text. The intention i
The ultimate guide to Schema Stitching in GraphQL
Overriding existing queries and mutationsWhile tailoring a new schema from existing GraphQL schemas using schema stitching, we can also override the existi
The Ultimate Guide to Data Classes in Python 3.7
One new and exciting feature coming in Python 3.7 is the data class. A data class is a class typically containing mainly data, although there aren’t rea
Practical Introduction to Web Scraping in Python
Web Scraping Basics What is web scraping all about? Imagine that one day, out of the blue, you find yourself thinking “Gee, I wonder who the five most p
特徵工程集錦:A Comprehensive Guide to Data Exploration
https://www.analyticsvidhya.com/blog/2016/01/guide-data-exploration/ 譯文:http://josephguan.github.io/2016/06/29/comprehensive-guide-to-data-explorati
An Overview of End-to-End Exactly-Once Processing in Apache Flink (with Apache Kafka, too!)
01 Mar 2018 Piotr Nowojski (@PiotrNowojski) & Mike Winters (@wints) This post is an adaptation of Piotr Nowojski’s presentation from Flink Forward Ber