kinesis-consumer/examples/consumer/cp-mysql
2019-04-12 22:15:49 -07:00
..
main.go Add Mysql support for checkpointing (#87) 2019-04-12 22:15:49 -07:00
README.md Add Mysql support for checkpointing (#87) 2019-04-12 22:15:49 -07:00

Consumer with mysl checkpoint

Read records from the Kinesis stream using mysql as checkpoint

Environment Variables

Export the required environment vars for connecting to the Kinesis stream:

export AWS_ACCESS_KEY=
export AWS_REGION=
export AWS_SECRET_KEY=

Run the consumer

 go run main.go --app <appName> --stream <streamName> --table <tableName> --connection <connectionString>

Connection string should look something like

 user:password@/dbname