
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-ribbon
Advanced tools
A Node.js microservice IPC Library, like Java Netflix Ribbon , support HTTP protocol
A Node.js client side IPC library for microservice, like Java Netflix Ribbon , support
这是一个客户端负载均衡 IPC 库,为微服务场景设计, 参照 Java Netflix Ribbon。 目前支持:
//sleep util function
async function sleep(time) {
return new Promise((resolve: any) => {
setTimeout(() => {
resolve();
}, time);
});
}
//create service discovery
let nacosIns = await ServiceDiscoveryFactory.createDiscovery({
type: ServiceDiscoveryTypeEnum.Nacos,
option: {
logger,
serverList: '127.0.0.1:8849',
namespace: 'public',
},
});
//create loadbalancer
const lbIns = LoadBalancerFactory.getLoadBalancer({ type: LoadBalancerEnum.Random });
//create ribbon instance
const ribbonIns = new RibbonBuilder({
service: {
type: ServiceNameTypeEnum.Name,
serviceName: 'provider',
},
})
.withLoadBalancer(lbIns)
.withServiceDiscovery(nacosIns)
.build();
//wait for setup
await ribbonIns.setup();
//get http client
const httpClient = await ribbonIns.getHttpClient({
fallback: (err) => {
console.log('req err:', err);
},
});
await sleep(3000);
try {
//send request
for (let i = 0, ilen = 10; i < ilen; i++) {
const ret = await httpClient.get('/hello');
console.log('random ret:', ret.data);
}
} catch (e) {
console.error(e);
}
FAQs
A Node.js microservice IPC Library, like Java Netflix Ribbon , support HTTP protocol
We found that node-ribbon 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.