Does tyk allow adding a nodeJs code to middleware Javascript


I want to include nodeJs modules in the Middleware javascript to sign the Post request to the AWS Kinesis stream. Is it possible for me to do so or is there any other way to sign the request as per aws documentation.

Anjna Bhati

There have been some succesful runs of nodeJS modules with our ECMAScript interpreter, but not full-blown nodeJS code. There are some interesting discussions in the archives here, as well as on github and our gitter channel about the limits of the JSVM.

Thanks Martin.
In that case is there a way to post some data to kinesis.

Anjna Bhati

If kinesis has an HTTP endpoint, then yes, the JSVM has an HTTP Handler, see TykMakeHttpRequest:

There are, but not full-blown nodeJS code.
javascript obfuscator