Code Room
Code reviewHardcr-g601
Subject Grpc no deadlineLevel Senior–Staff~20 minCommon in Networking & APIs interviewsIndustries Software development, Technology

Question

Review this Go gRPC call inside an HTTP request handler.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewgo
func handler(w http.ResponseWriter, r *http.Request) {	res, err := inventoryClient.Reserve(context.Background(), &pb.ReserveReq{Sku: r.FormValue("sku")})	if err != nil {		http.Error(w, err.Error(), 500)		return	}	fmt.Fprint(w, res.Token)}
Run or narrate your approach, then ask the coach.