Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/k6/v0.48.x/using-k6/protocols/grpc.md, or by sending Accept: text/markdown to https://grafana.com/docs/k6/v0.48.x/using-k6/protocols/grpc/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
gRPC
Overview
gRPC is a lightweight, open-source RPC framework. It was originally developed by Google, with version 1.0 released in August 2016. Since then, it’s gained much attention and wide adoption.
Whereas JSON transmits as human-readable text, gRPC is binary.
The binary format makes data transfer faster and more compact.
In the benchmarks we’ve seen, gRPC has proved much faster than REST, gRPC’s more traditional, JSON-based counterpart.
The messages and services used for gRPC are described in .proto files, containing definitions for Protocol Buffers (protobuf).
k6 also supports unary gRPC requests to the k6/net/grpc built-in module. For further information, read our tutorial about performance testing gRPC services.
Was this page helpful?
Related resources from Grafana Labs

