<cite id="ffb66"></cite><cite id="ffb66"><track id="ffb66"></track></cite>
      <legend id="ffb66"><li id="ffb66"></li></legend>
      色婷婷久,激情色播,久久久无码专区,亚洲中文字幕av,国产成人A片,av无码免费,精品久久国产,99视频精品3
      網(wǎng)易首頁 > 網(wǎng)易號 > 正文 申請入駐

      “流處理 vs. 批處理”是一個錯誤的二分法

      0
      分享至



      Often times, "Stream vs. Batch" is discussed as if it’s oneorthe other, but to me this does not make that much sense really.
      很多時候,“Stream vs. Batch”

      被討論為非此彼,但對我來說,這并沒有多大意義。

      Many streaming systems will apply batching too, i.e. processing or transferring multiple records (a "batch") at once, thus offsetting connection overhead, amortizing the cost of fanning out work to multiple threads, opening the door for highly efficient SIMD processing, etc., all to ensure high performance. The prevailing trend towards storage/compute separation in data streaming and processing architectures (for instance, thinking of platforms such as WarpStream, andDiskless Kafkaat large) further accelerates this development.
      許多流系統(tǒng)也將應用批處理,即一次處理或傳輸多條記錄(“批處理”),從而抵消連接開銷,將工作扇出的成本分攤到多個線程,為高效的 SIMD 處理打開大門等,所有這些都是為了確保高性能。數(shù)據(jù)流和處理架構(gòu)中存儲/計算分離的普遍趨勢(例如,考慮 WarpStream 和整個無盤 Kafka等平臺)進一步加速了這一發(fā)展。

      Typically, this is happening transparently to users, done in an opportunistic way: handling all of those records (up to some limit) which have arrived in a buffer since the last batch. This makes for a very nice self-regulating system. High arrival rate of records: larger batches, improving throughput. Low arrival rate: smaller batches, perhaps with even just a single record, ensuring low latency. Columnar in-memory data formats likeApache Arroware of great help for implementing such a design.
      通常,這對用戶是透明的,以機會主義的方式完成:處理自上一批以來到達緩沖區(qū)的所有這些記錄(最多達到某個限制)。這形成了一個非常好的自我調(diào)節(jié)系統(tǒng)。記錄到達率高:批次更大,提高吞吐量。低到達率:較小的批次,甚至可能只有一條記錄,確保低延遲。像Apache Arrow這樣的列式內(nèi)存數(shù)據(jù)格式對于實現(xiàn)這樣的設計有很大幫助。

      In contrast, what the "Stream vs. Batch" discussion in my opinion should actually be about, are "Pull vs. Push" semantics: will the system query its sources for new records in a fixed interval, or will new records be pushed to the system as soon as possible? Now, no matter how often you pull, you can’t convert a pull-based solution into a streaming one. Unless a source represents a consumable stream of changes itself (you see where this is going), a pull system may miss updates happening between fetch attempts, as well as deletes.
      相比之下,在我看來,“Stream vs. Batch”的討論實際上應該是關于“Pull vs. Push”語義:系統(tǒng)會在固定的時間間隔內(nèi)查詢其源以獲取新記錄,還是會盡快將新記錄推送到系統(tǒng)?現(xiàn)在,無論您多久拉取一次,都無法將基于拉取的解決方案轉(zhuǎn)換為流式解決方案。除非源本身代表可消費的更改流(您知道這是怎么回事),否則拉取系統(tǒng)可能會錯過在獲取嘗試和刪除之間發(fā)生的更新。

      This is what makes streaming so interesting and powerful: it provides you with a complete view of your data in real-time. A streaming system lets you put your data to thelocationwhere you need it, in theformatyou need it, and in theshapeyou need it (think denormalization), immediately as it gets produced or updated. The price for this is a potentially higher complexity, for example when reasoning about streaming joins (and their state), or handling out-of-order data. But the streaming community is working continuously to improve things here, e.g. via disaggregated state backends, transactional stream processing, and much more. I’m really excited about all the innovation happening in this space right now.
      這就是流式處理如此有趣和強大的原因:它為您提供實時數(shù)據(jù)的完整視圖。流系統(tǒng)允許您將數(shù)據(jù)放在需要的位置、所需的格式形狀(想想非規(guī)范化),在數(shù)據(jù)生成或更新時立即。這樣做的代價是可能更高的復雜性,例如,在推理流式連接(及其狀態(tài))或處理無序數(shù)據(jù)時。但是流社區(qū)正在不斷努力改進這里的事情,例如通過分解的狀態(tài)后端、事務流處理等等。我對這個領域現(xiàn)在發(fā)生的所有創(chuàng)新感到非常興奮。

      Now, you might wonder: "Do I really need streaming(push), though? I’m fine with batch(pull)."
      現(xiàn)在,您可能會想:“不過,我真的需要流式處理(push)嗎?我對批處理(拉)沒問題。

      That’s a common and fair question. In my experience, it is best answered by giving it a try yourself. Again and again I have seen how folks who were skeptical at first, very quickly wanted to get real-time streaming for more and more, if not all of their use cases, once they had seen it in action once. If you’ve experienced a data freshness of a second or two in your data warehouse, you don’t want to ever miss this magic again.
      這是一個常見且公平的問題。根據(jù)我的經(jīng)驗,最好自己試一試來回答。我一次又一次地看到,起初持懷疑態(tài)度的人們,一旦他們曾經(jīng)看到過實時流,他們很快就希望為越來越多的用例(如果不是全部)獲得實時流。如果您在數(shù)據(jù)倉庫中體驗過一兩秒的數(shù)據(jù)新鮮度,那么您肯定不想再錯過這種神奇之處。

      All that being said, it’s actually not even about pullorpush so much—
      the approaches complement each other. For instance, backfills often are done via batching, i.e. querying, in an otherwise streaming-based system. Also, if you want the completeness of streaming but don’t require a super low latency, you may decide to suspend your streaming pipelines (thus saving cost) in times of low data volume, resume when there’s new data to process, and halt again.
      話雖如此,實際上甚至與拉推無關——這些方法是相輔相成的。例如,回填通常是通過批處理(即查詢)在其他基于流的系統(tǒng)中完成的。此外,如果您想要流式處理的完整性,但不需要超低延遲,則可以決定在數(shù)據(jù)量較低時暫停流式處理管道(從而節(jié)省成本),在有新數(shù)據(jù)要處理時恢復,然后再次停止。

      Batch streaming, if you will.
      批量流式處理(如果愿意)。



      特別聲明:以上內(nèi)容(如有圖片或視頻亦包括在內(nèi))為自媒體平臺“網(wǎng)易號”用戶上傳并發(fā)布,本平臺僅提供信息存儲服務。

      Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.

      相關推薦
      熱點推薦
      驚!劉嘉玲看到這張照片,估計也會吃醋的吧

      驚!劉嘉玲看到這張照片,估計也會吃醋的吧

      喜歡歷史的阿繁
      2026-04-02 18:14:35
      告訴孩子:判斷婚姻對錯,只有一個簡單標準

      告訴孩子:判斷婚姻對錯,只有一個簡單標準

      青蘋果sht
      2026-03-26 06:09:17
      比張本智和還狂的人出現(xiàn)了!松島輝空晉級決賽 采訪時又提到王楚欽

      比張本智和還狂的人出現(xiàn)了!松島輝空晉級決賽 采訪時又提到王楚欽

      野渡舟山人
      2026-04-05 21:47:05
      浙江破獲一起特大串通投標案!5家單位互相配合,連續(xù)作案21起

      浙江破獲一起特大串通投標案!5家單位互相配合,連續(xù)作案21起

      巢客HOME
      2026-04-05 18:05:56
      馮提莫直播被懟腋下管理!當場硬剛,網(wǎng)友吵翻了

      馮提莫直播被懟腋下管理!當場硬剛,網(wǎng)友吵翻了

      明星爆料客
      2026-04-04 22:39:50
      不再隱瞞!畸形兒傳聞后,闞清子哭得一塌糊涂,章小蕙的話暴隱情

      不再隱瞞!畸形兒傳聞后,闞清子哭得一塌糊涂,章小蕙的話暴隱情

      一盅情懷
      2026-04-05 16:29:22
      南京大屠殺,日本人將光著身子少女扔到河邊,臨走時還踢幾腳

      南京大屠殺,日本人將光著身子少女扔到河邊,臨走時還踢幾腳

      歷史人文2
      2026-04-05 14:30:03
      伊朗披露挫敗美軍營救行動細節(jié)

      伊朗披露挫敗美軍營救行動細節(jié)

      財聯(lián)社
      2026-04-06 04:02:07
      你專業(yè)還是我專業(yè)!王鑄和張雪吵架事件,再次被扒,評論區(qū)沸騰了

      你專業(yè)還是我專業(yè)!王鑄和張雪吵架事件,再次被扒,評論區(qū)沸騰了

      火山詩話
      2026-04-05 12:09:37
      首例勝訴!小米法務部:超2萬人參?...

      首例勝訴!小米法務部:超2萬人參?...

      新浪財經(jīng)
      2026-04-06 00:25:22
      場均49+9!連損兩員大將的湖人,季后賽只能相信這位老將了

      場均49+9!連損兩員大將的湖人,季后賽只能相信這位老將了

      移動擋拆
      2026-04-06 01:48:25
      河南女生午睡5小時被警告,硬氣回懟引熱議

      河南女生午睡5小時被警告,硬氣回懟引熱議

      水泥土的搞笑
      2026-04-05 14:17:11
      足總杯四強奪冠賠率:曼城第1,切爾西第2,南安普頓第4

      足總杯四強奪冠賠率:曼城第1,切爾西第2,南安普頓第4

      懂球帝
      2026-04-06 03:44:06
      你們都是什么時候?qū)δ信麻_竅的?網(wǎng)友:果然還是攔不住有心人

      你們都是什么時候?qū)δ信麻_竅的?網(wǎng)友:果然還是攔不住有心人

      夜深愛雜談
      2026-02-21 21:37:02
      澳門世界杯:孫穎莎成就女單三連冠傳奇,深情致敬王曼昱

      澳門世界杯:孫穎莎成就女單三連冠傳奇,深情致敬王曼昱

      上觀新聞
      2026-04-06 04:30:16
      從“手打”到“1桶半”,“心機商標”的路該到頭了

      從“手打”到“1桶半”,“心機商標”的路該到頭了

      南方都市報
      2026-04-06 01:08:20
      鄭麗文扯掉了遮羞布,我們還要等什么?

      鄭麗文扯掉了遮羞布,我們還要等什么?

      越過海面
      2026-04-06 01:47:51
      店鋪突然清空!知名品牌宣布:結(jié)束運營!網(wǎng)友:當時有多愛,現(xiàn)在有多悔

      店鋪突然清空!知名品牌宣布:結(jié)束運營!網(wǎng)友:當時有多愛,現(xiàn)在有多悔

      南方都市報
      2026-04-05 09:53:54
      五次交手三勝兩負,趙心童決賽不敗金身難保,10%言論成X因素!

      五次交手三勝兩負,趙心童決賽不敗金身難保,10%言論成X因素!

      夜深聊球
      2026-04-05 18:12:55
      爆雷了!知名電商平臺總部人去樓空,大量供應商被欠款

      爆雷了!知名電商平臺總部人去樓空,大量供應商被欠款

      鳳凰網(wǎng)財經(jīng)
      2026-04-04 20:41:42
      2026-04-06 05:08:49
      親愛的數(shù)據(jù) incentive-icons
      親愛的數(shù)據(jù)
      《我看見了風暴:人工智能基建革命》一書作者
      693文章數(shù) 219913關注度
      往期回顧 全部

      科技要聞

      花200薅5千算力,Claude冷血斷供“龍蝦”

      頭條要聞

      伊朗官員提開放霍爾木茲海峽條件

      頭條要聞

      伊朗官員提開放霍爾木茲海峽條件

      體育要聞

      CBA最老球員,身價7500萬美元

      娛樂要聞

      王燦兮否認婆媳不和 曬與杜淳媽合影

      財經(jīng)要聞

      誰造出了優(yōu)思益這頭“怪物”?

      汽車要聞

      家用SUV沒駕駛樂趣?極氪8X第一個不同意

      態(tài)度原創(chuàng)

      時尚
      游戲
      藝術
      數(shù)碼
      健康

      伊姐清明熱推:電視劇《暴鋒雨》;電影《我,許可》......

      三天鼠標干壞兩個,你這還是自走棋嘛?

      藝術要聞

      高210米,砸13億!廈門“礦泉水瓶大樓”即將建成!

      數(shù)碼要聞

      大膽復古美學,海盜船推出原子紫配色K65 PLUS WIRELESS機械鍵盤

      干細胞抗衰4大誤區(qū),90%的人都中招

      無障礙瀏覽 進入關懷版