ExitAmazon Managed Service for Apache Flink: stateful stream processing1 / 9
Explanationassociate9 steps · 4 exercises

From sensor readings to window totals

How a managed Flink application reads events through a source connector, computes per-key results over time windows, and writes those results through a sink connector.

An Amazon Managed Service for Apache Flink application can turn a continuous stream of sensor readings into a total for each sensor and time interval. AWS runs the Flink infrastructure; your application defines what to read, how to group the readings, and where to write the totals.

The source connector and sink connector run inside the application. The source reads input records from an external system, and the sink writes results to another system. The arrows show the direction the data travels, even though the source connector initiates the reads.

Timestamped readingsSensor window totals
Sensor readings streamAmazon Kinesis Data Streams
Flink application: per-sensor event-time windowsAmazon Managed Service for Apache Flink
Totals table: sensor ID + window startAmazon DynamoDB table

Stage 1 of 4: An Amazon Kinesis data stream holds readings. Each reading includes a sensor ID, the time the measurement was taken, and a value.

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.