gRPC is a technology for developing services. It has a rich ecosystem of support, which lets you build high-performance backend services with efficient network communication which can be exposed via http/json and GraphQL.
list of ToDos rpc GetTodo (GetTodoRequest) returns (Todo) {} } message Todo { string id = 1; string title = 2; bool completed = 3; } message GetTodoRequest { string id = 1; } </>
returns a single todo based on an id GetTodo(context.Context, *GetTodoRequest) (*Todo, error) } func RegisterTodosServer( s *grpc.Server, srv TodosServer) { ... } </>