Architecture · Intermediate · 13 min

Batch & Stream Processing

Compare bounded input jobs with continuing streams, late data and recoverable checkpoints.

STEP 1 / 14
Run analytics on the live database — isometric concept diagramAnalytical reads and transactional requests can have different needs. Components: 1. Product service. Logical component or processing boundary; 2. Transactional database. Durable or explicitly scoped state. Connections: 1. Product service to Transactional database: Run analytics on the live database; 2. Transactional database to Product service: Reply: Transactional database. Illustrations are conceptual, not deployed capacity or user counts.Product service → Transactional database: Run analytics on the live database1Transactional database → Product service: Reply: Transactional database2Product service: Logical component or processing boundary1Product serviceLogical component or processingboundaryTransactional database: Durable or explicitly scoped state2TransactionaldatabaseDurable or explicitly scoped state
1Product service2Transactional database
  1. 1Product service → Transactional databaseRequestRun analytics on the live database
  2. 2Transactional database → Product serviceReplyReply: Transactional database

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Product service + Transactional database highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • A bounded input does not eliminate distributed coordination.
  • Time semantics determine which records belong to a result.
  • A checkpoint alone does not make arbitrary external effects exactly once.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

Pipeline · Pipes and filters ↗

Event-Driven architecture ↗

Further reading

Apache Flink · Event time and watermarks ↗