Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
pooled-thrift-client
Advanced tools
A Thrift client utilising a pool of service connections and improved error handling/recovery
A node Thrift client utilising a pool of service connections and improved error handling/recovery
Given a thrift file calculator_service.thrift
with contents:
service CalculatorService {
void ping(),
i32 add(1:i32 num1, 2:i32 num2)
}
Compile with the thrift
command (installable via your package manager):
thrift --gen js:node calculator_service.thrift
This will produce JS definitions for your service, which can then be used to create a client:
import CalculatorService from './CalculatorService';
import thriftClient, { AcquisitionTimeoutError, ConnectionTimeoutError } from 'pooled-thrift-client';
// host and port are mandatory see other config options in comments
const host = '127.0.0.1', port = 9000;
const client = thriftClient(CalculatorService, { max: 5 }, { host, port });
// use the client as you would a regular client, get pooling for free
client.add(1, 2).then(sum => console.log(sum));
1.0.0
FAQs
A Thrift client utilising a pool of service connections and improved error handling/recovery
The npm package pooled-thrift-client receives a total of 4 weekly downloads. As such, pooled-thrift-client popularity was classified as not popular.
We found that pooled-thrift-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.