node.js - GRPC client with multiple endpoints -


i writing node.js grpc client service exposes 2 endpoints, ex: localhost:50051, localhost:50052 . want able retry on localhost:50052 if request fails on localhost:50051.

one way can think of achieving creating 2 separate clients. however, wondering if there way achieve creating single client, ex: new test_proto.test(['localhost:50051', 'localhost:50052'],grpc.credentials.createinsecure());

i tried looking answer in various wiki pages , issues on github couldn't.

any suggestion of great help, !


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -