gRPC Flashcards

(20 cards)

1
Q

Define gRPC.

A

A high-performance, open-source RPC framework that uses HTTP/2 for transport.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false: gRPC supports multiple programming languages.

A

TRUE

gRPC supports languages like Java, Go, Python, and C++.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does RPC stand for?

A

Remote Procedure Call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: gRPC uses ______ for defining service methods.

A

Protocol Buffers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the primary transport protocol used by gRPC?

A

HTTP/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Protocol Buffers.

A

A language-agnostic binary serialization format used by gRPC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or false: gRPC only supports synchronous communication.

A

FALSE

gRPC supports both synchronous and asynchronous communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a service in gRPC?

A

A collection of RPC methods defined in a .proto file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: gRPC supports ______ streaming.

A

bidirectional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is load balancing in gRPC?

A

Distributing requests across multiple servers to optimize resource use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define Unary RPC.

A

A single request sent from client to server with a single response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is server streaming in gRPC?

A

The server sends a stream of responses to a single client request.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or false: gRPC can handle authentication and authorization.

A

TRUE

gRPC supports various authentication mechanisms, including OAuth and JWT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the purpose of gRPC Gateway?

A

To allow RESTful HTTP/JSON clients to communicate with gRPC services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fill in the blank: gRPC uses ______ for error handling.

A

status codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define client streaming in gRPC.

A

The client sends a stream of requests to the server and receives a single response.

17
Q

What is deadline in gRPC?

A

A time limit for how long a client is willing to wait for a response.

18
Q

True or false: gRPC is not suitable for mobile applications.

A

FALSE

gRPC is efficient and works well for mobile applications.

19
Q

What is metadata in gRPC?

A

Key-value pairs sent with requests and responses for additional context.

20
Q

Fill in the blank: gRPC supports ______ for service discovery.