© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
13 replies
florent

Are exceptions really that slow? - with .NET gRPC

I am building a server base on gRPC. In all docs about gRPC + C# there is the suggested method for error handling to simply throw a
RpcException
RpcException
to expose information to the client. But I always thought throwing an exception is extremely bad performance wise? I mean throwing an exception for a simple validation failure on the clients input data (REST eq:
return BadRequest()
return BadRequest()
) seems a bit too much, right? Or is that not really a big deal?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Testing services that are using Grpc clients generated via Grpc.Tools
C#CC# / help
3y ago
Exceptions.
C#CC# / help
17mo ago
✅ Exceptions
C#CC# / help
2y ago
Installed .NET 10 preview, can't publish projects that are .NET 9
C#CC# / help
7mo ago