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
protocwith streaming definitions. - Install dependencies:
locust-plugins,grpcio,grpcio-toolsif you wish to test locally.