ndk-rpc-cluster
Version:
Enterprise-grade RPC cluster system with load balancing, fault tolerance, service discovery and automatic failover support
13 lines (10 loc) • 354 B
JavaScript
import { Client } from "../index.mjs";
const client = new Client()
for (let i = 0; i < 1000; i++) {
const response = await client.request({
method: "add",
params: { a: 5, b: 2 }, // Array format as expected by server
key: "AddService"
})
console.log("Response from server to Client : ", response);
}