Yes, No, Maybe? Error Handling with gRPC Examples
summary
Shows gRPC + protobuf code for a hello service, demonstrates that client and server often disagree on status (e.g. deadline mismatch where client sees DEADLINE_EXCEEDED but server may have completed work), and gives concrete fixes: check context cancelled on the server to avoid wasted work, set explicit statuses like use FAILED_PRECONDITION to tell clients not to retry, add proto hints, measure error types, and avoid exposing internal implementation details.
AI-written summary · about
chapters (24)
- 0:00Intro
- 0:53Agenda
- 2:56Protocol Buffers
- 3:37Helper Code
- 4:10Implementation Code
- 6:52Status Code
- 7:55Logging
- 8:25Everything Else
- 8:47Maybe Examples
- 9:22Blue Set Example
- 12:26Waiting Time
- 13:02Exceeded Deadlines
- 13:33Best Practices
- 15:25Code Changes
- 16:42Hints
- 17:27Example
- 18:58Failed Precondition
- 20:24Error Codes
- 20:49Source of Truth
- 21:14Google Cloud
- 21:55Translator
- 22:54Default Arguments
- 23:53Guidelines
- 27:55Wrapup
related talks
19mKeynote: Overview of gRPC
33mIntro to gRPC
46mIntroduction to gRPC
48mgRPC in .NET: Basics & More
07mRPC Demystified or Hand-writing a gRPC Handler in 7 Minutes
20mKeynote: Overview of gRPC - Ivy Zhuang, Software Engineer, Google
31mCloud Native Communication Patterns with gRPC
23mTalking to Go gRPC Services Via HTTP/1
