DEV Community

Pavol Z. Kutaj
Pavol Z. Kutaj

Posted on

Explaining Transaction Count as Important Constraint for adding additional AWS Kinesis Consumers

USECASE

The aim of this page📝 is to explain the significance of monitoring CloudWatch metrics for Kinesis streams, particularly focusing on GetRecords.Records and SampleCount.
Previously, I was only monitoring the volume limits. However, transaction count limits can also become important when adding additional consumers to the stream. After adding a new consumer, I started noticing latencies and a spike in the ReadProvisionedThroughputExceeded metric.

  • GetRecords.Records metric counts the number of records retrieved from a shard in a specified time period.
  • SampleCount for GetRecords.Records indicates the number of GetRecords operations (transactions) performed.
  • Monitoring SampleCount helps in tracking the frequency of read transactions.
  • Kinesis stream limits each shard to five read transactions per second.
  • Using SampleCount ensures staying within the transaction quota.
  • Adding a new consumer increases read transactions, making SampleCount monitoring crucial.
  • Monitoring GetRecords.Bytes gives insight into the volume of data read.
  • Balancing GetRecords.Records, GetRecords.Bytes, and SampleCount provides a comprehensive view of stream usage.
  • Exceeding transaction limits can lead to throttling or performance issues.
  • Regular monitoring helps optimize stream performance and prevent issues.

LINKS

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

ACI image

ACI.dev: The Only MCP Server Your AI Agents Need

ACI.dev’s open-source tool-use platform and Unified MCP Server turns 600+ functions into two simple MCP tools on one server—search and execute. Comes with multi-tenant auth and natural-language permission scopes. 100% open-source under Apache 2.0.

Star our GitHub!

đź‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay