concept batch processing system in category streaming

appears as: batch processing systems, batch processing system, batch processing systems
Grokking Streaming Systems

This is an excerpt from Manning's book Grokking Streaming Systems.

Both applications and services are designed to serve clients (human users or remote requests) as soon as possible. Batch processing systems are not designed to response to any input. Instead, they are designed to execute at scheduled times or when resources permit. There are different kinds of batch processing systems.

You can see “real life” examples of batch processing systems fairly often. For example, in a post office, mail is collected, sorted, transported and delivered at scheduled times because it is more efficient this way. It would be hard to imagine that someone accepts your letter and runs out of the door immediately and tries to deliver the letter to the recipient. Well, it could work, but it would be super inefficient.

A typical stream processing system architecture looks similar to the batch processing systems. The whole process is broken into multiple steps called components and data keeps flowing from component to component until the processing steps have completed.

One major difference is that the components (the source and operators in the diagram above) are not started and stopped repeatedly during the process. Instead, they are long running processes. They keep running and accepting new data to process. Because all components in a system are always available, the intermediate storages between stages in batch processing systems are replaced by data queues.  Components are either constantly putting events on queues or pulling events off of the queues.