use tRPC for RPC calls instead of gRPC

TTuxer12/6/2022
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
A/Kalex / KATT12/7/2022
plenty of people use trpc for comms between microservices, it's up to you if it's worth the tradeoffs within your org