Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第十一章 传递事件流 部分有重复内容 #40

Closed
b7woreo opened this issue Mar 5, 2019 · 1 comment
Closed

第十一章 传递事件流 部分有重复内容 #40

b7woreo opened this issue Mar 5, 2019 · 1 comment

Comments

@b7woreo
Copy link
Contributor

b7woreo commented Mar 5, 2019

重复内容:

当输入是一个文件(一个字节序列),第一个处理步骤通常是将其解析为一系列记录。在流处理的上下文中,记录通常被叫做事件(event),但它本质上是一样的:一个小的,自包含的,不可变的对象,包含某个时间点发生的某件事情的细节。一个事件通常包含一个来自时钟的时间戳,以指明事件发生的时间(参见“单调钟与时钟”)。
​ 例如,发生的事件可能是用户采取的行动,例如查看页面或进行购买。它也可能来源于机器,例如对温度传感器或CPU利用率的周期性测量。在“使用Unix工具进行批处理”的示例中,Web服务器日志的每一行都是一个事件。
​ 事件可能被编码为文本字符串或JSON,或者某种二进制编码,如第4章所述。这种编码允许你存储一个事件,例如将其附加到一个文件,将其插入关系表,或将其写入文档数据库。它还允许你通过网络将事件发送到另一个节点以进行处理。

@Vonng
Copy link
Owner

Vonng commented Jan 2, 2020

tks, 已修复~

@Vonng Vonng closed this as completed Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants