https://github.com/awslabs/amazon-kinesis-client
Client library for Amazon Kinesis
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords
Repository
Client library for Amazon Kinesis
Basic Info
- Host: GitHub
- Owner: awslabs
- License: apache-2.0
- Language: Java
- Default Branch: master
- Size: 4.79 MB
Statistics
- Stars: 651
- Watchers: 76
- Forks: 476
- Open Issues: 326
- Releases: 125
Topics
Metadata Files
README.md
Amazon Kinesis Client Library for Java
[!IMPORTANT]
Amazon Kinesis Client Library (KCL) 1.x will reach end-of-support on January 30, 2026
Amazon Kinesis Client Library (KCL) 1.x will reach end-of-support on January 30, 2026. Accordingly, these versions will enter maintenance mode on April 17, 2025. During maintenance mode, AWS will provide updates only for critical bug fixes and security issues. Major versions in maintenance mode will not receive updates for new features or feature enhancements. If you’re using KCL 1.x, we recommend migrating to the latest versions. When migrating from KCL 1.x to 3.x, you will need to update interfaces and security credential providers in your application. For details about the end-of-support notice and required actions, see the following links: * AWS Blog: Announcing end-of-support for Amazon Kinesis Client Library 1.x and Amazon Kinesis Producer Library 0.x effective January 30, 2026 * Kinesis documentation: KCL version lifecycle policy * Kinesis documentation: Migrating from KCL 1.x to KCL 3.x
Introduction
The Amazon Kinesis Client Library (KCL) for Java enables Java developers to easily consume and process data from Amazon Kinesis Data Streams.
- Kinesis Data Streams Product Page
- Amazon re:Post Forum: Kinesis
- Javadoc
- FAQ
- Developer Guide - Kinesis Client Library
- KCL GitHub documentation (folder)
- Issues
- Giving Feedback
Features
- Scalability: KCL enables applications to scale dynamically by distributing the processing load across multiple workers. You can scale your application in or out, manually or with auto-scaling, without worrying about load redistribution.
- Load balancing: KCL automatically balances the processing load across available workers, resulting in an even distribution of work across workers.
- Checkpointing: KCL manages checkpointing of processed records, enabling applications to resume processing from their last sucessfully processed position.
- Fault tolerance: KCL provides built-in fault tolerance mechanisms, making sure that data processing continues even if individual workers fail. KCL also provides at-least-once delivery.
- Handling stream-level changes: KCL adapts to shard splits and merges that might occur due to changes in data volume. It maintains ordering by making sure that child shards are processed only after their parent shard is completed and checkpointed.
- Monitoring: KCL integrates with Amazon CloudWatch for consumer-level monitoring.
- Multi-language support: KCL natively supports Java and enables multiple non-Java programming languages through MultiLangDaemon.
Getting Started
- Sign up for AWS — Before you begin, you need an AWS account. For more information about creating an AWS account and retrieving your AWS credentials, see AWS Account and Credentials in the AWS SDK for Java Developer Guide.
- Sign up for Amazon Kinesis — Go to the Amazon Kinesis console to sign up for the service and create an Amazon Kinesis stream. For more information, see Create an Amazon Kinesis Stream in the Amazon Kinesis Developer Guide.
- Minimum requirements — To use the Amazon Kinesis Client Library, you will need Java 1.8+. For more information about Amazon Kinesis Client Library requirements, see Before You Begin in the Amazon Kinesis Developer Guide.
- Using the Amazon Kinesis Client Library — The best way to get familiar with the Amazon Kinesis Client Library is to read Use Kinesis Client Library in the Amazon Kinesis Data Streams Developer Guide. For more information on core KCL concepts, please refer to the [KCL Concepts][kinesis-client-library-concepts] page.
Building from Source
After you have downloaded the code from GitHub, you can build it using Maven. To disable GPG signing in the build, use
this command: mvn clean install -Dgpg.skip=true.
Note: This command does not run integration tests.
To disable running unit tests in the build, add the property -DskipUTs=true.
Running Integration Tests
Note that running integration tests creates AWS resources.
Integration tests require valid AWS credentials.
This will look for a default AWS profile specified in your local .aws/credentials.
To run all integration tests: mvn verify -DskipITs=false.
To run one integration tests, specify the integration test class: mvn -Dit.test="BasicStreamConsumerIntegrationTest" -DskipITs=false verify
Optionally, you can provide the name of an IAM user/role to run tests with as a string using this command: mvn -DskipITs=false -DawsProfile="<PROFILE_NAME>" verify.
Integration with the Kinesis Producer Library
For producer-side developers using the Kinesis Producer Library (KPL), the KCL integrates without additional effort. When the KCL retrieves an aggregated Amazon Kinesis record consisting of multiple KPL user records, it will automatically invoke the KPL to extract the individual user records before returning them to the user.
Amazon KCL support for other languages
To make it easier for developers to write record processors in other languages, we have implemented a Java based daemon, called MultiLangDaemon that does all the heavy lifting. Our approach has the daemon spawn a sub-process, which in turn runs the record processor, which can be written in any language. The MultiLangDaemon process and the record processor sub-process communicate with each other over STDIN and STDOUT using a defined protocol. There will be a one to one correspondence amongst record processors, child processes, and shards. For Python developers specifically, we have abstracted these implementation details away and expose an interface that enables you to focus on writing record processing logic in Python. This approach enables KCL to be language agnostic, while providing identical features and similar parallel processing model across all languages.
Using the KCL
The recommended way to use the KCL for Java is to consume it from Maven.
KCL versions
[!WARNING]
Do not use AWS SDK for Java versions 2.27.19 to 2.27.23 with KCL 3.x
When using KCL 3.x with AWS SDK for Java versions 2.27.19 through 2.27.23, you may encounter the following DynamoDB exception:
software.amazon.awssdk.services.dynamodb.model.DynamoDbException: The document path provided in the update expression is invalid for update (Service: DynamoDb, Status Code: 400, Request ID: xxx). This error occurs due to a known issue in the AWS SDK for Java that affects the DynamoDB metadata table managed by KCL 3.x. The issue was introduced in version 2.27.19 and impacts all versions up to 2.27.23. The issue has been resolved in the AWS SDK for Java version 2.27.24. For optimal performance and stability, we recommend upgrading to version 2.28.0 or later.
Version 3.x
xml
<dependency>
<groupId>software.amazon.kinesis</groupId>
<artifactId>amazon-kinesis-client</artifactId>
<version>3.1.2</version>
</dependency>
Version 2.x
Version 2.x tracking branch
xml
<dependency>
<groupId>software.amazon.kinesis</groupId>
<artifactId>amazon-kinesis-client</artifactId>
<version>2.7.0</version>
</dependency>
Version 1.x
Version 1.x tracking branch
xml
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>amazon-kinesis-client</artifactId>
<version>1.14.1</version>
</dependency>
Release Notes
| KCL Version | Changelog | | --- | --- | | 3.x | master/CHANGELOG.md | | 2.x | v2.x/CHANGELOG.md | | 1.x | v1.x/CHANGELOG.md |
Version recommendation
We recommend all users to migrate to the latest respective versions to avoid known issues and benefit from all improvements.
Giving Feedback
Help Us Improve the Kinesis Client Library! Your involvement is crucial to enhancing the Kinesis Client Library. We invite you to join our community and contribute in the following ways:
- Issue Reporting: This is our preferred method of communication. Use this channel to report bugs, suggest improvements, or ask questions.
- Feature Requests: Share your ideas for new features or vote for existing proposals on our Issues page. This helps us prioritize development efforts.
- Participate in Discussions: Engage with other users and our team in our discussion forums.
- Submit Pull Requests: If you have developed a fix or improvement, we welcome your code contributions.
By participating through these channels, you play a vital role in shaping the future of the Kinesis Client Library. We value your input and look forward to collaborating with you!
Owner
- Name: Amazon Web Services - Labs
- Login: awslabs
- Kind: organization
- Location: Seattle, WA
- Website: http://amazon.com/aws/
- Repositories: 914
- Profile: https://github.com/awslabs
AWS Labs
GitHub Events
Total
- Create event: 83
- Release event: 8
- Issues event: 41
- Watch event: 12
- Delete event: 29
- Issue comment event: 95
- Push event: 57
- Pull request review comment event: 98
- Pull request event: 204
- Pull request review event: 148
- Fork event: 13
Last Year
- Create event: 83
- Release event: 8
- Issues event: 41
- Watch event: 12
- Delete event: 29
- Issue comment event: 95
- Push event: 57
- Pull request review comment event: 98
- Pull request event: 204
- Pull request review event: 148
- Fork event: 13
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 160
- Total pull requests: 502
- Average time to close issues: almost 4 years
- Average time to close pull requests: about 2 months
- Total issue authors: 144
- Total pull request authors: 40
- Average comments per issue: 2.62
- Average comments per pull request: 0.38
- Merged pull requests: 256
- Bot issues: 1
- Bot pull requests: 220
Past Year
- Issues: 33
- Pull requests: 193
- Average time to close issues: 6 days
- Average time to close pull requests: 14 days
- Issue authors: 30
- Pull request authors: 18
- Average comments per issue: 0.03
- Average comments per pull request: 0.23
- Merged pull requests: 88
- Bot issues: 0
- Bot pull requests: 85
Top Authors
Issue Authors
- nikhil-sarda (2)
- muhufuk (2)
- sammefford (2)
- idaamit (2)
- elrob (2)
- omerbarlev (2)
- tkowalcz (2)
- prakashelango (2)
- gurudatta-carbon (2)
- hsingh124 (2)
- gabrielfmagalhaes (2)
- john-karp (2)
- ASharma0502 (2)
- khaledsobhy83 (2)
- nlm4145 (2)
Pull Request Authors
- dependabot[bot] (220)
- lucienlu-aws (32)
- vincentvilo-aws (30)
- stair-aws (30)
- pelaezryan (20)
- kcl-release-automation-bot (19)
- furq-aws (16)
- gguptp (15)
- chenylee-aws (13)
- nakulj (12)
- brendan-p-lynch (9)
- mmankika-aws (9)
- noahbt (8)
- minuhong-aws (8)
- akidambisrinivasan (7)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 5
- Total downloads: unknown
- Total docker downloads: 568,779,590
-
Total dependent packages: 122
(may contain duplicates) -
Total dependent repositories: 1,617
(may contain duplicates) - Total versions: 386
repo1.maven.org: com.amazonaws:amazon-kinesis-client
The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data from Amazon Kinesis.
- Homepage: https://aws.amazon.com/kinesis
- Documentation: https://appdoc.app/artifact/com.amazonaws/amazon-kinesis-client/
- License: Apache License, Version 2.0
-
Latest release: 1.15.3
published 11 months ago
Rankings
repo1.maven.org: software.amazon.kinesis:amazon-kinesis-client
The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data from Amazon Kinesis.
- Homepage: https://aws.amazon.com/kinesis
- Documentation: https://appdoc.app/artifact/software.amazon.kinesis/amazon-kinesis-client/
- License: Apache License, Version 2.0
-
Latest release: 3.1.1
published 9 months ago
Rankings
proxy.golang.org: github.com/awslabs/amazon-kinesis-client
- Documentation: https://pkg.go.dev/github.com/awslabs/amazon-kinesis-client#section-documentation
- License: apache-2.0
-
Latest release: v3.1.1+incompatible
published 9 months ago
Rankings
repo1.maven.org: software.amazon.kinesis:amazon-kinesis-client-multilang
The Amazon Kinesis Client Library for Multilang enables developers to use the Amazon Kinesis Client Library for Java on other languages.
- Homepage: https://aws.amazon.com/kinesis
- Documentation: https://appdoc.app/artifact/software.amazon.kinesis/amazon-kinesis-client-multilang/
- License: Apache-2.0,Apache-2.0
-
Latest release: 3.1.1
published 9 months ago
Rankings
repo1.maven.org: software.amazon.kinesis:amazon-kinesis-client-pom
The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data from Amazon Kinesis.
- Homepage: https://aws.amazon.com/kinesis
- Documentation: https://appdoc.app/artifact/software.amazon.kinesis/amazon-kinesis-client-pom/
- License: Apache License, Version 2.0
-
Latest release: 3.1.1
published 9 months ago
Rankings
Dependencies
- org.projectlombok:lombok 1.18.22 provided
- com.google.guava:guava 31.0.1-jre
- com.google.protobuf:protobuf-java 3.19.2
- io.reactivex.rxjava3:rxjava 3.1.3
- org.apache.commons:commons-lang3 3.12.0
- org.slf4j:slf4j-api 1.7.32
- software.amazon.awssdk:cloudwatch ${awssdk.version}
- software.amazon.awssdk:dynamodb ${awssdk.version}
- software.amazon.awssdk:kinesis ${awssdk.version}
- software.amazon.awssdk:netty-nio-client ${awssdk.version}
- software.amazon.glue:schema-registry-common 1.1.9
- software.amazon.glue:schema-registry-serde 1.1.9
- ch.qos.logback:logback-classic 1.2.9 test
- junit:junit 4.13.2 test
- org.hamcrest:hamcrest-all 1.3 test
- org.mockito:mockito-all 1.10.19 test
- org.projectlombok:lombok 1.18.22 provided
- ch.qos.logback:logback-classic 1.2.9
- com.amazonaws:aws-java-sdk-core 1.12.130
- com.amazonaws:aws-java-sdk-sts 1.12.130
- com.beust:jcommander 1.81
- commons-beanutils:commons-beanutils 1.9.4
- commons-io:commons-io 2.11.0
- org.apache.commons:commons-collections4 4.4
- software.amazon.awssdk:sts ${awssdk.version}
- software.amazon.kinesis:amazon-kinesis-client 2.4.1
- junit:junit 4.13.2 test
- org.hamcrest:hamcrest-all 1.3 test
- org.mockito:mockito-all 1.10.19 test
- actions/checkout v3 composite
- actions/setup-java v3 composite