Protocol Buffers
A language-neutral way to define data structures and services in .proto files and encode messages in a compact binary format.
In more detail
Code generators turn the definitions into classes for many languages. Numbered fields make additive changes safe, provided numbers are never reused.
Example
message Order { int32 id = 1; float total = 2; }Related terms
- gRPC — A high-performance remote procedure call framework that generates client and server code from Protocol Buffers definitions and runs over HTTP/2.
- binary format — A data format made of compact machine-oriented bytes rather than readable text.
- code generation — Producing client or server code automatically from a machine-readable contract such as an OpenAPI document or a Protocol Buffers file.
- etcd — The distributed key-value store where Kubernetes keeps all cluster data, including every Secret.
- JSON — A simple text format for structured data made of keys, values, lists and nested objects.
- schema — A formal description of the structure of data: which fields or columns exist, their types and which are required.
- serialization — Turning an in-memory object into bytes, such as JSON text, that can be sent or stored, and parsing it back again.
- Apache Avro — A compact binary serialization format whose schemas are written as JSON documents.
Taught in
- What An API Is, And The Alternatives — Modern API Architecture: REST, GraphQL & gRPC
- When Each Wins: REST, GraphQL, gRPC And SOAP — Modern API Architecture: REST, GraphQL & gRPC
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- The Field The Registry Refused — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Twelve Lines Instead Of Four Hundred — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Bytes On The Wire: JSON, Avro And Protobuf — Apache Kafka & Event Streaming
- Nine Lines, Five Bugs: Configuring The SDK — OpenTelemetry Certified Associate (OTCA) Exam Prep