grpc

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards

What is gRPC?

gRPC is a high-performance, open-source universal remote procedure call framework developed by Google allowing applications to communicate efficiently in microservices.

2
New cards

What is the interface description language used by gRPC?

gRPC uses Protocol Buffers (protobufs) as its interface description language (IDL).

3
New cards

What major protocol does gRPC operate on?

gRPC is built on HTTP/2.

4
New cards

What feature of gRPC allows for multiple requests over a single connection?

Multiplexing is a feature of HTTP/2 that allows gRPC to handle multiple requests over a single connection.

5
New cards

What does bi-directional streaming in gRPC mean?

It allows clients and servers to send messages in both directions simultaneously.

6
New cards

List some programming languages that gRPC supports.

gRPC supports C++, Java, Python, Go, Ruby, C#, among others.

7
New cards

What security feature does gRPC provide for data transmission?

gRPC provides built-in support for authentication via mechanisms like SSL/TLS.

8
New cards

What is a Service in gRPC?

A Service defines the methods that can be called remotely.

9
New cards

What role does the Server play in gRPC?

The Server implements service methods and listens for incoming RPC calls.

10
New cards

What is the Client's function in gRPC?

The Client makes calls to the server's methods and packages the request over the network.

11
New cards

What is a Channel in gRPC?

A Channel is an abstraction for a TCP connection to a gRPC server managing network communication.

12
New cards

What are Stubs in gRPC?

Stubs are client-side representations of gRPC services that allow calling service methods like local functions.

13
New cards

Provide an example of defining a service in gRPC.

service Greeter { rpc SayHello(HelloRequest) returns (HelloResponse); }

14
New cards

How is a service implemented on the server side in Python?

class GreeterServicer(greeterpb2grpc.GreeterServicer): def SayHello(self, request, context): return greeter_pb2.HelloResponse(message='Hello, ' + request.name)