Overview
gRPC supports streaming RPCs—client-side, server-side, and bidirectional streams—over HTTP/2. Locust withGrpcUser
can simulate these streaming calls to measure performance under load.
Locust Test Script (locust.py)
Notes:
- Generate gRPC code via
protoc
with streaming definitions. - Install dependencies:
locust-plugins
,grpcio
,grpcio-tools
if you wish to test locally.