Search⌘ K
AI Features

Solution Review: Applying gRPC API Versioning

Explore how to implement API versioning in gRPC applications by updating Protobuf message definitions and server-side code. Understand techniques to maintain backward compatibility while evolving your gRPC services on ASP.NET Core.

We'll cover the following...

Overview

The code widget below shows the complete solution to the exercise where the server-side API was updated while retaining its compatibility with the old version of the client.

syntax = "proto3";

option csharp_namespace = "BasicGrpcService";

package basic_grpc_service;

service Chatbot {
  rpc SendMessage (ChatRequest) returns (ChatReply);
}

message ChatRequest {
  string name = 1;
  string message = 2;
}

message ChatReply {
  string message = 1;
}
Solution to updating the server-side API while retaining its compatibility with the client

Solving the

...