- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 235字
- 2021-07-23 18:59:14
Data stream types
Broadly, data streams can be categorized into two types:
- Cold data streams: There are a number of names by which this is known, such as Cold Source, Cold Observable, and Cold Publisher. These emit data only when one subscribes to it and because of this, all messages produced from start are delivered to the subscriber. If a new Subscriber connects to it, the messages are replayed in ascending order and this is same for any new Subscriber. The Subscriber also has a provision to dictate the rate at which the Publisher should emit messages. These data streams are good candidates for applying reactive backpressure (request(n)), for example, a database cursor or file stream (reading a file).
- Hot data streams: Again, this has a number of different names, such as Hot Source, Hot Observable, and Hot Publisher. These emit data irrespective of any subscribers connected. When a new Subscriber connects, it just emits the messages from that point in time and cannot replay messages from the start. These cannot pause message emissions, so an alternate mechanism is required to control flow, such as a buffer. Examples of this stream include mouse events and stock prices.
It's important to note that operators on a stream can change their property, going from cold to hot and vice versa. Also, there are times when a merge between hot and cold can happen and their properties change.
推薦閱讀
- CTF實戰(zhàn):技術(shù)、解題與進(jìn)階
- SASE原理、架構(gòu)與實踐
- 網(wǎng)絡(luò)空間安全:管理者讀物
- 黑客攻防入門秘笈
- 工業(yè)物聯(lián)網(wǎng)安全
- 防火墻技術(shù)與應(yīng)用(第2版)
- Kali Linux Network Scanning Cookbook(Second Edition)
- 硬黑客:智能硬件生死之戰(zhàn)
- 從0到1:CTFer成長之路
- Mastering Reverse Engineering
- Learning Pentesting for Android Devices
- Web安全攻防從入門到精通
- 云計算安全:關(guān)鍵技術(shù)、原理及應(yīng)用
- 隱私保護(hù)機(jī)器學(xué)習(xí)
- 網(wǎng)絡(luò)入侵檢測系統(tǒng)原理與應(yīng)用