Service · Analytics
Amazon Managed Service for Apache Flink
Managed Apache Flink: stateful windows and joins over live streams from Kinesis or Kafka.
State across records
- Lambda
- no
- Firehose
- no
- Flink
- yes
Time windows
- Lambda
- by hand
- Firehose
- no
- Flink
- built in
Join streams
- Lambda
- no
- Firehose
- no
- Flink
- yes
Best for
- Lambda
- Small per-record code
- Firehose
- Delivery to S3
- Flink
- Windows and joins
| Need | Lambda | Firehose | Flink |
|---|---|---|---|
| State across records | no | no | yes |
| Time windows | by hand | no | built in |
| Join streams | no | no | yes |
| Best for | Small per-record code | Delivery to S3 | Windows and joins |
1 / 2
State across records
- Lambda
- no
- Firehose
- no
- Flink
- yes
Time windows
- Lambda
- by hand
- Firehose
- no
- Flink
- built in
Join streams
- Lambda
- no
- Firehose
- no
- Flink
- yes
| Need | Lambda | Firehose | Flink |
|---|---|---|---|
| State across records | no | no | yes |
| Time windows | by hand | no | built in |
| Join streams | no | no | yes |
2 / 2
Best for
- Lambda
- Small per-record code
- Firehose
- Delivery to S3
- Flink
- Windows and joins
| Need | Lambda | Firehose | Flink |
|---|---|---|---|
| Best for | Small per-record code | Delivery to S3 | Windows and joins |
What it is
Amazon Managed Service for Apache Flink (formerly Kinesis Data Analytics for Apache Flink) runs Apache Flink code on a stream. Flink keeps state between records. That lets it count events in a window, join two streams, or spot a pattern over time. A window groups events by time: tumbling windows do not overlap, sliding windows overlap, and session windows end after a quiet gap. Flink can use event time, the time stamped on the record, so late data still lands in the right window.
What it is
You write Flink in Java, Python or Scala, or use Flink SQL in a Studio notebook, an Apache Zeppelin notebook where you test queries on a stream and can promote the notebook to a long-running application. Sources include Kinesis Data Streams and Amazon MSK. Sinks include S3, Firehose, Kinesis, OpenSearch and others.
What it is
Capacity is counted in Kinesis Processing Units (KPUs). One KPU gives 1 vCPU and 4 GB of memory, and one more KPU is billed for orchestration. The default limit is 64 KPUs for an application, and you can ask for more. The service can scale KPUs with load. Checkpoints save the state of the job regularly so it can recover after a failure, and snapshots let you stop and restore an application.
Remember
- Flink keeps state: windows, joins and patterns across many records.
- Window types: tumbling, sliding, session. Event time handles late data.
- Flink SQL in a Studio notebook for tests. Code in Java, Python or Scala for production.
- Sources: Kinesis Data Streams, MSK. Sinks: S3, Firehose, OpenSearch and more.
Remember
- One KPU is 1 vCPU and 4 GB. Default limit 64 KPUs.
- Checkpoints help recovery. Snapshots help stop and restore.
On the exam
- “Count events per minute on a live stream” points to Managed Service for Apache Flink.
- “Join two streams, or detect a pattern over time” points to Flink, not Lambda or Firehose.
- “Only deliver stream data to S3” points to Firehose.
In this task · 1.1
- S3 as the ML data lake
- Choosing storage: S3, EFS, EBS, FSx and transfer tools
- Extracting data from databases and search
- Data formats: Parquet, ORC, Avro, CSV, JSON, RecordIO
Kinesis Data Streams
Firehose
Managed Flink
MSK
- Troubleshooting ingestion and storage capacity
Catalog and Lake Formation
- Merging data from multiple sources
- Choosing and configuring a vector store
OpenSearch
- Aurora and RDS PostgreSQL with pgvector
- Ingesting text, image, audio and video
- Ingesting data into SageMaker Feature Store