travisshears on Nostr: Tried to use tRPC to communicate between two backend service. Nope. The appRouter ...
Tried to use tRPC to communicate between two backend service. Nope.
The appRouter type has to be shared between the projects. Either with some hacky type generation and copy paste or another repo shared repo bringing dependency problems. Just nope. tRPC is not ready for prime time in the use case of backend service communication. Going back to GraphQL or simply REST.
https://trpc.io/#webdev
Published at
2024-07-19 10:16:39Event JSON
{
"id": "d6a21e23c3f6b4e8ea2e93931c65d8d7538867a728d599b7b8651c5579ae4d59",
"pubkey": "5e370c2f2e0422423fa5028d7d0debfecbe699a0c7337e139b25eb2b112d450d",
"created_at": 1721384199,
"kind": 1,
"tags": [
[
"t",
"webdev"
]
],
"content": "Tried to use tRPC to communicate between two backend service. Nope. \n\nThe appRouter type has to be shared between the projects. Either with some hacky type generation and copy paste or another repo shared repo bringing dependency problems. Just nope. tRPC is not ready for prime time in the use case of backend service communication. Going back to GraphQL or simply REST. \n\nhttps://trpc.io/\n\n#webdev",
"sig": "45ac14a806b5a045885e22f12b4cbda10fe429cace60a42ad6d5c0424501634892c9587ef02f694114e54ca50dd10a540c300a75966f6491d230d519e4b70abb"
}