amazon-kinesis-client-nodejs | Amazon Kinesis Client Library for Node.js | AWS library
kandi X-RAY | amazon-kinesis-client-nodejs Summary
kandi X-RAY | amazon-kinesis-client-nodejs Summary
Amazon Kinesis Client Library for Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Click stream processor
- Click stream processor
- create a new Producer
- Creates a new buffer with the given record and records .
- Main record processor
- Create an event emitter
- Start KCL process .
- send data to the batch
- Create a new logger .
- Generate a random video stream
amazon-kinesis-client-nodejs Key Features
amazon-kinesis-client-nodejs Examples and Code Snippets
Community Discussions
Trending Discussions on amazon-kinesis-client-nodejs
QUESTION
I'm reading through the docs for KCL (AWS's Kinesis Client Library) and if I'm understanding it correctly, I need to install the KCL itself (Java) and then my NodeJS consumer application will be able to access it. First of all, is this correct?
If so, I'm confused by the linkage between NodeJS and KCL. I see in the AWS sample code the line:
...ANSWER
Answered 2017-Jul-13 at 15:28I need to install the KCL itself (Java) and then my NodeJS consumer application will be able to access it. First of all, is this correct?
Yes, that's correct.
If you install the KCL for nodejs and write your consumer app entirely in nodejs, you still need Java installed on your system because of the MultiLangDaemon. See the docs here.
I'm confused by the linkage between NodeJS and KCL.
When require
is given the path of a folder, it'll look for an index.js
in it. If there is one, it will use that, if there isn't, it will fail.
In your example the kcl
variable requires the index.js at the root directory.
Do I just need to ensure that my KCL installation is located at a relative path that will accommodate this require statement?
No, in a real world application you would require
this module regularly like so var kcl = require('aws-kcl')
, which is the name given to it in the package.json
QUESTION
I was able to successfully follow the AWS kinesis tutorial here:
However, in this tutorial we are running the producer and consumer on local machine.
So I am guessing in production, we have to create two EC2 instances
- for a producer
- for consumer
which means we are back to managing the server infrastructure. Am i understanding this right ?
...ANSWER
Answered 2017-Feb-25 at 04:57Yep, I would recommend deploying producer and consumer apps to two instances, so that they are de-coupled, and well thats the point of service-oriented architecture :)
You definitely do not want to stop the producer-app
when you have to deploy changes in consumer-app
and vice versa + many more.
I did not quite understand when you say back to managing the server infrastructure?
, which you have to otherwise how you gonna deploy the applications.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install amazon-kinesis-client-nodejs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page