* Use shard broker to start processing new shards The addition of a shard broker will allow the consumer to be notified when new shards are added to the stream so it can consume them. Fixes: https://github.com/harlow/kinesis-consumer/issues/36
17 lines
322 B
Markdown
17 lines
322 B
Markdown
# Consumer
|
|
|
|
Read records from the Kinesis stream
|
|
|
|
### Environment Variables
|
|
|
|
Export the required environment vars for connecting to the Kinesis stream and Redis for checkpoint:
|
|
|
|
```
|
|
export AWS_PROFILE=
|
|
export AWS_REGION=
|
|
export REDIS_URL=
|
|
```
|
|
|
|
### Run the consumer
|
|
|
|
$ go run main.go --app appName --stream streamName
|