Skip to Content
流架构
book

流架构

by James Urquhart
November 2022
Intermediate to advanced
276 pages
3h 51m
Chinese
China Electric Power Press Ltd.
Content preview from 流架构
150
5
一部分是不明智的。相反,它们假定负载体将是一个对规范本身没有影响的
位块。
这意味着,虽然通用元数据格式可能允许消费者订阅生产者流而不需要定制
代码,但对负载的解释可能是完全不同的情况。在流发展的早期,我怀疑大
多数流将定义自己的负载格式,尽管它们可能使用
JSON
YAML
等公共框
架作为该定义的公共结构。但是,从长远来看,我相信大多数行业和政府将
为大多数常见的流用例定义或重用公共负载标准。然而,这些标准格式究竟
是什么,是不可能预测的。一个成功的负载协议(甚至协议风格)将在很大
程度上取决于随时间提供成本和灵活性最佳组合的机制。
5.4.3
及时性
流的核心价值主张实际上是围绕两件事构建的:降低通过事件流进行集成的
成本;使用事件流以近乎实时的方式发出状态变化的信号。后者数据的及时
性对于此类集成至关重要。例如,一个高频交易系统在股票已经售出后才知
晓股票的价格,系统并不能真正利用该信息做任何有价值的事情。因为这些
数据已经过时了。
几十年来,数据分析行业已经调查出数据价值具有半衰期(
https://oreil.ly/
qtjoo
)。一旦数据被创建(例如,通过传感器或用户在
Web
应用程序中输入),
对于那些能够利用数据立即采取行动的人来说,它就具有巨大的价值。经过
一段时间(因应用程序而异),数据的价值会降低。例如,在
Web
应用程序中,
如果响应请求的时间超过三秒,用户将开始放弃与网站的交互。在三秒后的
响应可能有一定的价值,但它将比你早响应要少。
最终,数据对于特定的应用程序几乎毫无价值(至少作为一条单独的信息) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham

Publisher Resources

ISBN: 9787519869649