Is tRPC a good choice for typesafe communication between two backends?
(when talking about interservice and between services and "gateways/primary service", theo said)
Do not use tRPC here, you are making a mistake https://youtu.be/jd5JwXoDXFo?t=202what other typesafe ways can this be done for between a nextjs backend and another app that's always running? all my code is in turbo monorepo. I don't need high performance speed for this i could make a package just describing each type and then have an express/fastify implement those, if tRPC isn't a good option, but i'd prefer to use tRPC here
Theo - ping․gg
YouTube
Stop Asking Me About gRPC
I'm really tired of people assuming tRPC and gRPC are the same thing because three letters are the same. Hope this helps 😅
Idez killed it w/ this one so make sure he gets some love in the comments
Twitch link: https://twitch.tv/theo
Twitter link: https://twitter.com/t3dotgg
Discord link: https://t3.gg/discord
Everything else (insta, tiktok, bl...
15 Replies
🤔
It’ll be cool if you could fetch server types with OPTIONS request. Tho I’d love to see the answers too 🤔
i need types at compile and development time
The new package with shared libs? You can add it through npm even if it's not published to NPM registry
big picture in general for server to server communication
you would rather want some sort of queue
its already in a turborepo monorepo
99% sure i dont need a queue lol
okay, okay, not gonna lie, I type first, read later
yeah, seeing your diagram, you don't need a queue 😄
but hey how am I going to sound smart in front of strangers on the internet then?!
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Theo @ TwitchCon!!! (w/ Ping.gg) (@t3dotgg)
@alexdotjs @trpcio I believe you but this still scares me
Twitter
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i wasnt making a point
if anything, im saying that theo somewhat supports it
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
lol should i have him talk about it next stream
also: