Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Buffering transformed messages(example, 1000 count) using Apache Flink stream processing

I'm using Apache Flink for stream processing.

After subscribing the messages from source(ex:Kafka, AWS Kinesis Data Streams) and then applying transformation, aggregation and etc. using Flink operators on streaming data I want to buffer final messages(ex:1000 in count) and post each batch in a single request to external REST API.

How to implement buffering mechanism(creating each 1000 records as a batch) in Apache Flink?

Flink pipileine: streaming Source --> transform/reduce using Operators --> buffer 1000 messages --> post to REST API

Appreciate your help!

Answer*

Draft saved
Draft discarded
Cancel
3
  • Chris, are you referring "Keyed State" as state, for creating sinc with and hold on to messages? If you have a reference example please link, I’m new to Flink, but anyway I will read docs. Thank you! Commented Nov 7, 2019 at 14:57
  • @Sparkle8 I'll see what I can come up with Commented Nov 8, 2019 at 8:33
  • thank you, Chris! your answer is helpful for implementing session based stream processing and post on messages to REST, with apache-flink Commented Nov 11, 2019 at 17:08

AltStyle によって変換されたページ (->オリジナル) /