Skip to main content

🗓️ 15012025 1021
📎

stream_processing_semantics

  • Refer to the guarantees a stream processing system provides regarding the processing of events in a data stream
  • Define how the system behaves during:
    • Normal conditions
    • During failures, ensuring data is processed correctly

Types

SemanticsDescriptionUse Case
At-Most-OnceEvents are processed at most once. If a failure occurs, some events may be lost.Low-latency systems where occasional data loss is acceptable (e.g., real-time monitoring dashboards).
At-Least-OnceEvents are processed at least once. Duplicates may occur if a failure happens.Applications where occasional duplication is acceptable (e.g., logging systems).
Exactly-OnceEvents are processed exactly once, ensuring no data is lost or duplicated, even in case of failures.Critical systems like payment processing, billing, or fraud detection.

References