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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

đź‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay