Skip to content

Latest commit

 

History

History

flink-streaming-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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