Define gRPC.
A high-performance, open-source RPC framework that uses HTTP/2 for transport.
True or false: gRPC supports multiple programming languages.
TRUE
gRPC supports languages like Java, Go, Python, and C++.
What does RPC stand for?
Remote Procedure Call
Fill in the blank: gRPC uses ______ for defining service methods.
Protocol Buffers
What is the primary transport protocol used by gRPC?
HTTP/2
Define Protocol Buffers.
A language-agnostic binary serialization format used by gRPC.
True or false: gRPC only supports synchronous communication.
FALSE
gRPC supports both synchronous and asynchronous communication.
What is a service in gRPC?
A collection of RPC methods defined in a .proto file.
Fill in the blank: gRPC supports ______ streaming.
bidirectional
What is load balancing in gRPC?
Distributing requests across multiple servers to optimize resource use.
Define Unary RPC.
A single request sent from client to server with a single response.
What is server streaming in gRPC?
The server sends a stream of responses to a single client request.
True or false: gRPC can handle authentication and authorization.
TRUE
gRPC supports various authentication mechanisms, including OAuth and JWT.
What is the purpose of gRPC Gateway?
To allow RESTful HTTP/JSON clients to communicate with gRPC services.
Fill in the blank: gRPC uses ______ for error handling.
status codes
Define client streaming in gRPC.
The client sends a stream of requests to the server and receives a single response.
What is deadline in gRPC?
A time limit for how long a client is willing to wait for a response.
True or false: gRPC is not suitable for mobile applications.
FALSE
gRPC is efficient and works well for mobile applications.
What is metadata in gRPC?
Key-value pairs sent with requests and responses for additional context.
Fill in the blank: gRPC supports ______ for service discovery.
DNS