- Learning Apache Apex
- Thomas Weise Munagala V. Ramanath David Yan Kenneth Knowles
- 280字
- 2021-07-02 22:38:38
Low latency and stateful processing
Apex is a native streaming architecture. As previously discussed, this allows processing of events as soon as they arrive without artificial delay, which enables real-time use cases with very low latency. Another important capability is stateful processing. Windowing may require a potentially very large amount of computational state. However, state also needs to be tracked in connectors for correct interaction with external systems. For example, the Apex Kafka connector will keep track of partition offsets as part of its checkpointed state so that it can correctly resume consumption after recovery from failure. Similarly, state is required for reading from files and other sources. For sources that don't allow for replay, it is even necessary to retain all consumed data in the connector until it has been fully processed in the DAG.
Stateful stream processors have what is also referred to as continuous operator model. Operators are initialized once, at launch time. Subsequently, as events are processed one by one, state can be accumulated and held in-memory as long as it is needed for the computation. Access to the memory is fast, which allows for very low latency.
So, what about fault tolerance? The platform is responsible for checkpointing the state. It can do so efficiently and provides everything needed to guarantee that state can be restored and is consistent in the event of failure. Unlike the early days of Apache Storm with per tuple acknowledgement overhead and user responsibility for state handling, the next generation streaming architectures provide fault tolerance mechanisms that do not compromise performance and latency. How Apex solves this, will be covered in detail in Chapter 5, Fault Tolerance and Reliability.
- Instant Raspberry Pi Gaming
- 21小時學(xué)通AutoCAD
- Natural Language Processing Fundamentals
- 自動檢測與轉(zhuǎn)換技術(shù)
- WordPress Theme Development Beginner's Guide(Third Edition)
- CompTIA Linux+ Certification Guide
- 大數(shù)據(jù)驅(qū)動的設(shè)備健康預(yù)測及維護(hù)決策優(yōu)化
- Splunk Operational Intelligence Cookbook
- ESP8266 Robotics Projects
- 電氣控制及Micro800 PLC程序設(shè)計
- 機(jī)器人制作入門(第4版)
- 分布式Java應(yīng)用
- Cisco UCS Cookbook
- 牛津通識讀本:大數(shù)據(jù)(中文版)
- OpenGL Development Cookbook