/nestcloud-grpc-example

How to use nestcloud/grpc for loadbalance rpc call.

Primary LanguageTypeScript

NestCloud

NPM Version Package License NPM Downloads Travis Linux Coverage

A NodeJS micro-service solution based on Consul, writing by Typescript language and NestJS framework.

Dependency

  • Consul

Requirement Components

  • @nestcloud/common
  • @nestcloud/consul
  • @nestcloud/consul-service
  • @nestcloud/consul-loadbalance
  • @nestcloud/grpc

How to run

yarn
yarn run start:server1
yarn run start:server2
yarn run start:client

Then visit http://localhost:3004/heros