Albatross
Albatross

Reputation: 690

Async Operation in A Flink Sink using CompletableFuture

Background

Planning to set a up data pipeline using Flink.

The flow looks like this

        Kafka --> Flink Job --> gRPC endpoint

Story so far

  1. Blocking implementation is up and running. But that will not scale for high QPS
  2. Tried simulating async behavior here

Problem

Upvotes: 1

Views: 852

Answers (1)

kkrugler
kkrugler

Reputation: 9245

I would leverage Flink's support for async operators, and have a DiscardingSink, versus trying to implement a custom async sink.

And no, I don't see any reason why having a persistent thread pool would cause problems.

Upvotes: 3

Related Questions