crccheck / kinesis-console-consumer Goto Github PK
View Code? Open in Web Editor NEWAWS Kinesis stream consumer for the console
License: Apache License 2.0
AWS Kinesis stream consumer for the console
License: Apache License 2.0
kinesis-console-consumer stream-name | grep .
won't output anything.
workaround is:
kinesis-console-consumer stream-name | jq -cC . | grep .
maintain a Set
of shard iterators to keep track of state. Part of #27
list streams is done now, just need to wait for enough streams to need pagination
created a PR to implement this :
Some problems:
process.exit
process.exit
, then --help
doesn't exit, which causes a block to run that normally wouldn't.It's getting real annoying using older syntax
Without transpilation. AFAIK just needs 'use strict'
make sure to update .nvmrc
,package.json
currently, it's in a setTimeout(..., 2000)
it's a heavy weight requirement and if this is used as a library, we don't need it.
it doesn't really make sense to make it an optional peer requirement because no one is going to do that.
The other option is to split this up into two libraries.
aws, kinesis, cli
It's very hard to justify right now because after stubbing aws-sdk, there's very little code. But I really really should do it.
to follow best practices
I just noticed/remembed Mocha a very similar option https://mochajs.org/#-g---grep-pattern
Since that's already a thing, shouldn't we follow?
It's also nice because it's a bigger hint to just use grep
if you got it.
It turns out that the library code is pretty good just for consuming a Kinesis stream. Might as well refactor this so others can benefit from it.
It's sorta like nasty dependency injection, but it's also quite practical because right now I'm making assumptions about how the client should be instantiated. And this will make writing tests so much easier!
inspired by https://github.com/rclark/kinesis-readable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.