Streaming fundamentals
Let’s start by looking at some of the fundamental concepts in streaming that will help us get familiarized with different paradigms in streaming.
Stateless streaming – processing one event at a time
Stateless streaming refers to the processing of each event in isolation, without considering any context or history from previous events. In this approach, each event is treated independently, and the processing logic does not rely on any accumulated state or information from past events.
Stateless streaming is well-suited for scenarios where each event can be processed independently, and the output is solely determined by the content of the event itself. This approach is often used for simple filtering, transformation, or enrichment operations that do not require you to maintain any contextual information across events.
Stateful streaming – maintaining stateful information
Stateful streaming involves maintaining and utilizing contextual...