vmware-go-kcl is a vmware originated open-source project for AWS Kinesis Client Library in Go. It has been widely used by many external companies and internally by Carbon Black. vmware-go-kcl-v2 is its companion project by utilizing AWS Go SDK V2 which introduces lots of breaking changes. To keep the repo clean, it is better to have a separated repo vmware-go-kcl-v2 with better golang project structure improvement.
Find a file
Aurélien Rainone 6c9e594751 Make the lease refresh period configurable (#56)
* Add LeaseRefreshSpanMillis in configuration

For certain use cases of KCL the hard-coded value of 5s value,
representing the time span before the end of a lease timeout in
which the current owner gets to renew its own lease, is not
sufficient. When the time taken by ProcessRecords is higher
than 5s, the lease gets lost and the shard may end up to another
worker.

This commit adds a new configuration value, that defaults to 5s,
to let the user set this value to its own needs.

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>

* Slight code simplification

Or readability improvement

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>
2021-12-20 21:21:15 -06:00
clientlibrary Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
logger logger: move zap into its own package (#47) 2021-12-20 21:21:15 -06:00
support Release shard lease after shutdown (#31) 2021-12-20 21:21:14 -06:00
test Fix broken tests (#50) 2021-12-20 21:21:15 -06:00
.gitignore CKL: Initial version for starting repository 2021-12-20 21:13:11 -06:00
.gitreview CKL: Initial version for starting repository 2021-12-20 21:13:11 -06:00
CODE_OF_CONDUCT.md Add Code of Conduct template 2021-11-30 23:05:17 +08:00
CONTRIBUTING.md Add DCO text 2021-12-20 21:20:10 -06:00
go.mod Add generic logger support (#43) 2021-12-20 21:21:14 -06:00
go.sum Add generic logger support (#43) 2021-12-20 21:21:14 -06:00
HyperMake Use AWS built-in retry logic and refactor tests (#24) 2021-12-20 21:21:14 -06:00
LICENSE KCL: Update copyright and permission 2021-12-20 21:16:27 -06:00
README.md Add DCO text 2021-12-20 21:19:26 -06:00

vmware-go-kcl-v2

Overview

Try it out

Prerequisites

  • Prereq 1
  • Prereq 2
  • Prereq 3

Build & Run

  1. Step 1
  2. Step 2
  3. Step 3

Documentation

Contributing

The vmware-go-kcl-v2 project team welcomes contributions from the community. Before you start working with vmware-go-kcl-v2, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.

License

Build & Run

hmake

# security scan
hmake scanast

# run test
hmake check

# run integration test
# update the worker_test.go to let it point to your Kinesis stream
hmake test

Documentation

VMware-Go-KCL matches exactly the same interface and programming model from original Amazon KCL, the best place for getting reference, tutorial is from Amazon itself:

Contributing

The vmware-go-kcl project team welcomes contributions from the community. Before you start working with vmware-go-kcl, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.

License

MIT License