Book Image

gRPC Go for Professionals

By : Clément Jean
Book Image

gRPC Go for Professionals

By: Clément Jean

Overview of this book

In recent years, the popularity of microservice architecture has surged, bringing forth a new set of requirements. Among these, efficient communication between the different services takes center stage, and that's where gRPC shines. This book will take you through creating gRPC servers and clients in an efficient, secure, and scalable way. However, communication is just one aspect of microservices, so this book goes beyond that to show you how to deploy your application on Kubernetes and configure other tools that are needed for making your application more resilient. With these tools at your disposal, you’ll be ready to get started with using gRPC in a microservice architecture. In gRPC Go for Professionals, you'll explore core concepts such as message transmission and the role of Protobuf in serialization and deserialization. Through a step-by-step implementation of a TODO list API, you’ll see the different features of gRPC in action. You’ll then learn different approaches for testing your services and debugging your API endpoints. Finally, you’ll get to grips with deploying the application services via Docker images and Kubernetes.
Table of Contents (13 chapters)
10
Epilogue

Quiz

  1. What is the RPC operation that tells the server that the client is ready to send a request?
    1. Send Trailer
    2. Send Message
    3. Send Header
  2. What is the RPC operation that tells the client that the server is done returning response(s)?
    1. Send Half-Close
    2. Send Trailer
    3. Send Header
  3. Which RPC type can be used for downloading information by chunks in one request from the client side?
    1. Server streaming
    2. Client streaming
    3. Bidirectional streaming
    4. Unary
  4. Which RPC type is the equivalent of a traditional HTTP/1.1 request?
    1. Server streaming
    2. Client streaming
    3. Bidirectional streaming
    4. Unary
  5. What is a channel?
    1. An abstraction used by RPCs for representing a connection to any available server discovered by the load balancer.
    2. An abstraction used by the load balancer for representing a connection to a specific server.
    3. Both of the above
  6. What is a subchannel?
    1. An abstraction used by RPCs for representing a connection to any available server discovered by the load balancer.
    2. An abstraction used by the load balancer...