ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

サービス · Analytics

Amazon Managed Service for Apache Flink

Managed Apache Flink: stateful windows and joins over live streams from Kinesis or Kafka.

このレッスンはまだ翻訳されていないため、英語で表示しています。

Flink reads a stream, keeps state and writes results out.
  • 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
Which tool for which streaming need.

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

2 / 2

  • Best for

    Lambda
    Small per-record code
    Firehose
    Delivery to S3
    Flink
    Windows and joins
Which tool for which streaming need.

概要

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.

概要

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.

概要

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.

覚えること

  • 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.

覚えること

  • One KPU is 1 vCPU and 4 GB. Default limit 64 KPUs.
  • Checkpoints help recovery. Snapshots help stop and restore.

試験では

  • “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.