CU-CloudCollab / aws-examples

Various examples of interacting with AWS through both the CLI and the SDK
23 stars 15 forks source link

NodeJS pattern for Stream Reader #4

Open jayachandranm opened 7 years ago

jayachandranm commented 7 years ago

Thanks for this module!

Probably your pattern for creating the stream from dynamodb scan results can be improved. Instead of pumping data to the streamer object, if the streamer object itself does the scan operation, the use of the variable as an intermediary could be avoided.

Here is an example, https://calv.info/an-introduction-to-nodes-new-streams

sbower commented 7 years ago

If you are interested please feel free to fork and submit a PR

jayachandranm commented 7 years ago

I will give a try! I am not an experienced user of nodejs, but I got a working version.