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=202
what 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
Samathingamajig
SamathingamajigOP•3y ago
🤔
John
John•3y ago
It’ll be cool if you could fetch server types with OPTIONS request. Tho I’d love to see the answers too 🤔
Samathingamajig
SamathingamajigOP•3y ago
i need types at compile and development time
John
John•3y ago
The new package with shared libs? You can add it through npm even if it's not published to NPM registry
robotkutya
robotkutya•3y ago
big picture in general for server to server communication you would rather want some sort of queue
Samathingamajig
SamathingamajigOP•3y ago
its already in a turborepo monorepo 99% sure i dont need a queue lol
robotkutya
robotkutya•3y ago
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?!
Samathingamajig
SamathingamajigOP•3y ago
t3ggSad
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Samathingamajig
SamathingamajigOP•3y ago
i wasnt making a point if anything, im saying that theo somewhat supports it
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Samathingamajig
SamathingamajigOP•3y ago
lol should i have him talk about it next stream
Samathingamajig
SamathingamajigOP•3y ago
also:
Want results from more Discord servers?
Add your server