commit | ae91394e89501aeb4edba71cb67c0c22301eb4a6 | [log] [tgz] |
---|---|---|
author | Fernando Rejon Barrera <39321865+frejonb@users.noreply.github.com> | Wed Nov 27 03:39:15 2019 +0100 |
committer | nkurihar <nkurihar@apache.org> | Wed Nov 27 11:39:15 2019 +0900 |
tree | 74a9bdc95c4a3e235bd8eb2061ab4e984f502dcd | |
parent | 0c33334d6b43034bb35226e5b6f9ba7ec202332c [diff] |
Add negative acknowledgement support for consumer (#59) * add nack redeliver timeout declaration * implmement nack redeliver timeout * add nack to consumer test * add negative acknowledge e2e test * add negative acknowledge declarations * add negative acknowledge definitions
The Pulsar Node.js client can be used to create Pulsar producers and consumers in Node.js.
Pulsar Node.js client library is based on the C++ client library. Follow the instructions for C++ library for installing the binaries through RPM, Deb or Homebrew packages.
(Note: you will need to install not only the pulsar-client library but also the pulsar-client-dev library)
Also, this library works only in Node.js 10.x or later because it uses the node-addon-api module to wrap the C++ library.
Compatibility between each version of the Node.js client and the C++ client is as follows:
Node.js client | C++ client |
---|---|
1.0.0 | 2.3.0 or later |
If an incompatible version of the C++ client is installed, you may fail to build or run this library.
$ npm install pulsar-client
Please refer to examples.
$ git clone https://github.com/apache/pulsar-client-node.git $ cd pulsar-client-node $ npm install
$ npm run build