A stream keeps events; an application makes sense of them
When to use Kinesis Data Streams to retain events for consumers to read or replay, and when to use managed Flink to run stateful computations on those events.
An order event records one purchase. A running total answers a different question: how much has a shop sold so far? Amazon Kinesis Data Streams keeps the order events available to read, while an application on Amazon Managed Service for Apache Flink uses them to update the totals.
Keeping the original events separate from the calculation lets another reader use those same events without going through the totals application. The diagram shows where the raw events go and where the calculation happens.
Stage 1 of 5: An order application on Amazon EC2 creates an event each time a purchase is recorded.
Next up: Trace a request on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.