commit | dc0b4c855ef5bfd98ef269a12cd58ae44684021d | [log] [tgz] |
---|---|---|
author | savearray2 <46784573+savearray2@users.noreply.github.com> | Wed Sep 23 11:31:49 2020 +0900 |
committer | GitHub <noreply@github.com> | Wed Sep 23 11:31:49 2020 +0900 |
tree | bebc7c5a5c0b969ec3b53ba429f1dcc71f8aed53 | |
parent | 17eb4fabc8773ea7358472bc9a852bcbec2c0ee1 [diff] |
Includes Support for ZSTD and SNAPPY Compression (#121) * Includes Support for ZSTD and SNAPPY Compression A version bump to the latest version of the Pulsar C++ library (2.6.1) was required to make use of the compression types. As the latest version of the C++ library requires GLIBCXX_3.4.22, the testing suite code was altered to automatically update the Docker image with the latest version of libstdc++6 and gcc-4.9 before executing the library tests. * Update pulsar-version.txt Co-authored-by: savearray2 <savearray2>
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 |
1.1.0 | 2.4.0 or later |
1.2.0 | 2.5.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
$ npm install @types/pulsar-client --save-dev
Please refer to examples.
$ git clone https://github.com/apache/pulsar-client-node.git $ cd pulsar-client-node $ npm install
$ npm run build