aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.97k stars 1.06k forks source link

Kinesis enhanced fanout latency issue. #3118

Open sohaib-rasool opened 1 month ago

sohaib-rasool commented 1 month ago

Describe the bug

When using aws-sdk-cpp to subscribe to a Kinesis stream with enhanced fanout via the SubscribeToShard() method, the SetEventStreamHandler() callback is invoked with noticeable delays, and data is received in batches instead of real-time. This causes inefficient processing of the stream data, leading to potential performance issues, especially in low-latency or real-time systems.stream data processing

Expected Behavior

Current Behavior

Reproduction Steps

Possible Solution

No response

Additional Information/Context

AWS CPP SDK version used

1.11.389

Compiler and Version used

gcc 11.4.0

Operating System and version

Ubuntu 22.04

jmklix commented 1 month ago

Can you provide a minimal reproduction sample that follows the steps you listed above?

sohaib-rasool commented 1 month ago

kinesis_EFO_aws_issue.txt image image

I've attached the consumer code. This code does not throw any exception or set any error in subscribeOutcome. Its just that the handler is invoked with significant delay which is explained above. Producer is pretty straightforward which works fine with other consumers.

sohaib-rasool commented 1 month ago

@jmklix Any updates on this. And do let me know if you need anything else.

sohaib-rasool commented 1 week ago

Are there any updates on this?