Amazon Kinesis Client for Go
Being in the batchconsumer package means it will work for anything using KCL, but lambdas that subscribe to these log streams do not use batchconsumer at all; instead they invoke the splitter package directly. As such, if we want this functionality to be available to lambda log consumers, it can't be in batchconsumer. There are no functionality changes here, just moving code from an unexported method in one place to an exported function in another place. The tests also get moved along with it. |
||
|---|---|---|
| .circleci | ||
| .github | ||
| batchconsumer | ||
| cmd | ||
| decode | ||
| kcl | ||
| splitter | ||
| .gitignore | ||
| batchconsumer.properties | ||
| consumer.properties | ||
| golang.mk | ||
| Gopkg.lock | ||
| Gopkg.toml | ||
| Makefile | ||
| README.md | ||
amazon-kinesis-client-go
A port of amazon-kinesis-client-python to Go.
Running the Consumer
Edit the file consumer.properties to point at a Kinesis stream that has some data.
Build the consumer binary:
make build
Then run:
make run
This will download the jar files necessary to run the KCL, and then launch the KCL communicating with the consumer binary.