ArticleslgStudy

computer science

GRPC

GRPC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GRPC rather than just read about it. In short: gRPC (recursive acronym for gRPC Remote Procedure Calls) is a cross-platform high-performance remote procedure call (RPC) framework. gRPC was initially created by Google, but is open source and is used in many organizations. Use cases range from microservices to the "last mile" of computing (mobile, web, and the Internet of things). gRPC uses HTTP/2 for transport, Protocol Buffers as the interface description langua…

Key takeaways

  • GRPC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GRPC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GRPC from memory before moving on to harder problems.

Reference excerpt

gRPC (recursive acronym for gRPC Remote Procedure Calls) is a cross-platform high-performance remote procedure call (RPC) framework. gRPC was initially created by Google, but is open source and is used in many organizations. Use cases range from microservices to the "last mile" of computing (mobile, web, and the Internet of things). gRPC uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts. It generates cross-platform client and server bindings for many languages. The most common usage scenarios include connecting services in a microservices style architecture, or connecting mobile device clients to backend services. gRPC's use of HTTP trailers makes it impossible to implement a gRPC client in a browser, instead requiring a proxy.

History From about 2001, Google created a general-purpose RPC infrastructure called Stubby to connect the large number of microservices running within and across its data centers. In March 2015, Google decided to build the next version of Stubby and make it open source. The result was gRPC.

Authentication gRPC supports the usage of Transport Layer Security (TLS) and token-based authentication. Connection to Google services must use TLS. There are two types of credentials: channel credentials and call credentials. For token-based authorization, gRPC provides Server Interceptor and a Client Interceptor.

Encoding gRPC uses Protocol Buffers to encode data. Protocol buffers provide a serialization format and an interface definition language.

Testing Some of the software tools used for testing gRPC implementations include Postman, ezy, Insomnia, and Step CI.

Adoption Many organizations use gRPC, including Uber, Square, Netflix, Nutanix, Amazon, IBM, CoreOS, Docker, CockroachDB, Arista Networks, Cisco, Juniper Networks, Spotify, Zalando, Dropbox, and Google as the original developer. The open source project u-bmc uses gRPC to replace Intelligent Platform Management Interface (IPMI). On 8 January 2019, Dropbox announced that the next version of "Courier", their RPC framework at the core of their service-oriented architecture (SOA), would be migrated to be based on gRPC, primarily because it aligned well with their existing custom RPC frameworks.

Alternatives ASN.1 Cap'n Proto Apache Thrift Apache Avro JSON-RPC XML-RPC

See also

Comparison of data serialization formats

References

External links gRPC Home Page gRPC – github.com gRPC – opensource.google.com

Worked examples

Example 1 — a first encounter with GRPC

Start with the simplest possible case. Write down what GRPC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GRPC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GRPC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GRPC

In research
GRPC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GRPC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GRPC is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free software programmed in C++, Free software programmed in Python, Google software, so understanding it makes those chapters shorter.
In everyday life
Look for GRPC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GRPC” →

How to study GRPC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GRPC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GRPC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GRPC in simple terms?

gRPC (recursive acronym for gRPC Remote Procedure Calls) is a cross-platform high-performance remote procedure call (RPC) framework. gRPC was initially created by Google, but is open source and is used in many organizations. Use cases range from microservices to the "last mile" of computing (mobile…

Why does GRPC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GRPC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GRPC.

Tags

  • Free software programmed in C++
  • Free software programmed in Python
  • Google software
  • Remote procedure call
  • Software using the Apache license

Keep exploring