TuxerT
tRPC4y ago
1 reply
Tuxer

use tRPC for RPC calls instead of gRPC

Hi,

I know that tRPC and gRPC are different things - despite the similar name.

Nevertheless I would like to hear your opinion on using tRPC for things you would normally use gRPC for. What are possible use cases? What are the pros and cons.

use case: call a remote render server to render assets

pros:
- You can keep using your zod typings and don't have to recreate them for all needed gRPC calls.

cons:
- Both tasks need to be running on typescript or you need at least to create a typescript wrapper for that task
- gRPC has much lower data usage
Was this page helpful?