What is the difference between a gRPC unary RPC and a streaming RPC?

Last updated 8 July 2026

A unary RPC is a single request that returns a single response (like a normal function call), while a streaming RPC lets one or both sides send a sequence of messages over a single long-lived call.

  • Unary:

    • One request, one response; simplest and most common pattern.

    • Maps cleanly to request/response APIs.

  • Streaming comes in three shapes:

    • Server streaming: one request, a stream of responses (e.g. a feed or large result set).

    • Client streaming: a stream of requests, one response (e.g. uploads, aggregation).

    • Bidirectional: independent read and write streams over one call.

  • Shared transport: All are multiplexed over HTTP/2; streaming keeps the same call open, avoiding repeated connection/setup overhead.

  • Defined in the .proto: The stream keyword on request and/or response type chooses the shape.

  • https://www.remoterocketship.com/advice/10-grpc-interview-questions-and-answers-in-2023/
  • https://www.vskills.in/interview-questions/grpc-interview-questions
  • https://techwasti.com/25-grpc-interview-questions-and-answers-for-developers
  • https://www.youtube.com/watch?v=2w7aBrtoqAg
  • https://aws.amazon.com/compare/the-difference-between-grpc-and-rest/
  • https://dev.to/kreya/rest-vs-grpc-which-should-you-choose-for-your-next-api-4mkf
  • https://www.toptal.com/developers/grpc/grpc-vs-rest-api
  • https://www.reddit.com/r/golang/comments/1hlwzaj/question_about_grpc/
  • https://medium.com/coding-odyssey/grpc-with-spring-boot-deep-dive-with-interview-questions-48aa83be0ec6
  • https://medium.com/@nasmina.7898/rest-vs-grpc-interview-cheat-sheet-f6f6c1e46b88
  • https://www.secondtalent.com/interview-guide/grpc-developers/
  • https://grpc.io/docs/guides/interceptors/
  • https://grpc.io/docs/guides/deadlines/
  • https://learn.microsoft.com/en-us/aspnet/core/grpc/deadlines-cancellation?view=aspnetcore-10.0
  • https://interviewprep.org/grpc-interview-questions/
  • https://medium.com/system-design-interviews-simplified/system-design-mock-interview-rest-graphql-and-grpc-7a5a3964977c
  • https://articles.shadecoder.com/grpc-vs-rest-interview-comparison-for-2026
  • https://www.scribd.com/document/988441763/19-REST-GraphQL-GRPC-API-Design-Contract-Strategy-Interview-Questions-Master
  • https://www.youtube.com/watch?v=5YqAXWz6Fpc
  • https://oneuptime.com/blog/post/2026-01-08-grpc-deadlines-timeouts/view
All gRPC interview questions