내용으로 건너뛰기

Intermittent high latency (4+ minutes) in Kinesis GetRecords calls - How to handle timeouts effectively?

0

We're experiencing intermittent high latency issues with our Kinesis implementation:

Setup:

  • Kinesis stream with 64 shards
  • 40 consumers polling continuously
  • Using @aws-sdk/client-kinesis v3.74.0
  • Latency-sensitive application
  • both poller and consumers are in eu-west region

Issue: We've observed that some GetRecords calls are taking approximately 4 minutes to complete. This is happening intermittently and causing significant latency spikes in our processing.

Questions:

  1. Why would GetRecords calls take 4 minutes to complete sometimes? Is this a known issue?
  2. Is there a way to set a requestTimeout in the AWS SDK for Kinesis specifically? The documentation isn't clear about timeout configuration.
  3. If we implement our own timeout mechanism, would subsequent GetRecords calls be likely to succeed, or would they face the same issue?
  4. ** What's the recommended approach to handle such scenarios in latency-sensitive applications?**

Any insights into the cause and potential solutions would be greatly appreciated

질문됨 2년 전167회 조회

1개 답변
0

Hello Samriddhi,

To address the latency issues, consider implementing detailed monitoring, sharding scaling, balancing, and record size monitoring. In Amazon Kinesis, each GetRecords request retrieves up to 1MB of data. If your records exceed this limit, multiple requests will be needed, increasing latency.

The following resources provide insights into mitigating latency issues in Kinesis:

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.