grpc-python Questions

1

Solved

To compile proto files for Python, I could protoc -I=.--python_out=$DST_DIR sommem.proto based on https://developers.google.com/protocol-buffers/docs/pythontutorial or python -m grpc_tools.protoc ...
Outthink asked 30/6, 2020 at 2:22

2

Solved

I am trying come up with better ways to deal with the 4mb message size limit in grpc. I need a way to measure the size of the grpc response received on client side. When the response exceeds 4mb li...
Arquit asked 9/12, 2019 at 9:27

1

I have a sample helloworld.proto file and use Python. I am not getting what does this option keyword has to do in the compilation phase? syntax = "proto3"; package services.helloworld; option go...
Gavelkind asked 8/4, 2020 at 5:38

1

Solved

I have written a grpc server that contains multiple rpc services. Some are unary and some are server side streaming. It connects to a grpc kubernetes server so I am using the python kubernetes cli...
Metathesize asked 12/2, 2020 at 5:53

3

Im trying to catch any exception that is raised in any servicer so I can make sure that I only propagate known exceptions and not unexpected ones like ValueError, TypeError etc. I'd like to be abl...
Preglacial asked 2/10, 2018 at 12:37

1

Solved

I have a gRPC HelloWorld server running like shown in official getting started guide(https://grpc.io/docs/quickstart/python/). I now want to shutdown/terminate the server from the client, possibl...
Minda asked 10/12, 2019 at 7:15

2

Solved

We have some proto files for gRPC in a repo and I read that it is not good to commit generated code. So I figured I need to have the generation as part of the package installation (e.g. setuptools,...
Celle asked 25/10, 2018 at 17:21

0

I'm trying to use the following code in my production server(which I want to scale it to more than 500 TPS). I'm facing the following issue when I flood the server with many requests. In atleast 1 ...
Lickerish asked 31/10, 2019 at 6:46

2

GRPC server does queue the requests and serve them based on the maxWorker configuration which is passed when the sever starts up. How do I print the metric- number of items in the queue .? Essentia...
Alica asked 16/4, 2019 at 1:49

0

Recently I have been getting my hand dirty to mock gRPC calls in python using MagicMock() but I have been not successful in mocking gRPC response message which I have got. Here is the piece of code...
Nutwood asked 17/1, 2019 at 14:24

1

Solved

tensorflow-gpu 1.10.0 tensorflow-server 1.10.0 I have deployed a tensorflow server which serves several models. The client code is like client.py this and I call the predict function. channel =...

1

Solved

How do you use the gRPC python auth library for both client and server authentication? The docs only cover server authentication. Are there additional flags in grpc.secure_channel() that need to b...
Telegenic asked 23/10, 2018 at 18:9

© 2022 - 2024 — McMap. All rights reserved.