sendgridlabs / go-kinesis

GO library for AWS Kinesis
MIT License
134 stars 56 forks source link

Expand CLI to add a PUT command #11

Open lancecarlson opened 10 years ago

lancecarlson commented 10 years ago

It would be cool if you there was a CLI for doing the following:

cat something.txt | kinesis-cli <stream-name>

something along those lines. I could imagine creating very simple producers this way. Thoughts?

le0pard commented 10 years ago

Good idea. Right now I don't have time to add this feature, but can accept pull request.

lancecarlson commented 10 years ago

I started to implement something, but wasn't sure about an implementation detail. Do you think that it would make sense to split the input line by line and create a new PUT for each line?

If this is how it should work, should the partition keys just autoincrement ?

le0pard commented 10 years ago

@lancecarlson I hope you know how it should work, because in most cases I using API. Split can be better, because max message size in kinesis - 50kB.