Skip to content

Files

Latest commit

author
Junyao Huang
Aug 18, 2022
1b508c7 · Aug 18, 2022

History

History
This branch is 4 commits behind microsoft/flink-on-azure:main.

flink-streaming-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 18, 2022
Aug 18, 2022
Aug 18, 2022
Aug 18, 2022

Flink Streaming Example

Prerequisites

Build Flink Job

mvn clean package

Custom Flink Streaming Source & Sink

Flink has 3 types of custom streaming source:

  • Implements SourceFunction with single parallelism.
  • Implements ParallelSourceFunction with multi parallelism.
  • Implements RichParallelSourceFunction with multi parallelism, with open() to initialize resource, close() to dispose resource.

Flink has 2 types of custom streaming sink:

  • Implements SinkFunction with single parallelism.
  • Implements RichSinkFunction with single parallelism, with open() to initialize resource, close() to dispose resource.

Flink Batch Stream Alignment

Flink has raised new kind of Source & Sink API for Batch Stream Alignment