8

I am playing with grpc & grpc-web. I was able to run a simple grpc server and grpc-web applications. However I feel like the setup requires too many dependencies web-server, grpc-server and envoy proxy.

Is anyone successfully using grpc-web for production? Do we need all the dependencies including envoy?

RamPrakash
  • 2,218
  • 3
  • 25
  • 54
  • You need something that are able to understand and translate the grpc-web requests to your grpc server. The current default proxy which supports this out of the box is Envoy. – Stanley Cheung Jun 17 '20 at 18:17

2 Answers2

0

We are using the grpc web proxy from improbable. So what you need is :

  1. Generated js client + grpc web runtime module
  2. Grpc web proxy
  3. Your implementation of grpc services Nothing special...
Alexander.Furer
  • 1,817
  • 1
  • 16
  • 24
  • 1
    I already follow that. My question is - do we need envoy? Your application is in production? Can you share the link please? just curious. – RamPrakash Jun 20 '20 at 15:43
  • 1
    You need some grpc web proxy. No way to call grpc server directly from the browser (meanwhile ) – Alexander.Furer Jun 20 '20 at 15:47
0

Yes, we need some kind of proxy, but instead of Envoy proxy you can use build in solutions like grpcweb.

Danil Perestoronin
  • 1,063
  • 1
  • 7
  • 9