Chapter 4. Compute Engines
At the center of a Fast Data architecture, we find compute engines. These engines are in charge of transforming the data flowing into the system into valuable insights through the application of business logic encoded in their specific model. As we learned in Chapter 1, there are two main stream processing paradigms: micro-batch and one-at-a-time message processing.
Micro-Batch Processing
Micro-batching refers to the method of accumulating input data until a certain threshold, typically of time, in order to process all those messages together. Compare it to a bus waiting at a terminal until departure time. This bus is able to deliver many passengers to their destination who are sharing the same transport and fuel.
Micro-batching enjoys mechanical sympathy with the network and storage systems, where it is optimal to send packets of certain sizes that can be processed all at once.
In the micro-batch department, the leading framework is Apache Spark. Apache Spark is a general-purpose distributed computing framework with libraries for machine learning, streaming, and graph analytics.
Spark provides high-level structured abstractions that let us operate on the data viewed as records that follow a certain schema. This concept ties together a high-level API that offers bindings in Scala, Java, Python, and R with a low-level execution engine that translates the high-level structure-oriented constructs into query and execution plans that can be optimally pushed ...
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