t
tRPC
t
tRPC
Is there a Trpc-like solution for synchronous and asynchronous communication between microservices
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
3/11/23, 11:07 AM
TRPC has adapters and you could write one to receive from an events system
N
Nick
•
3/11/23, 11:07 AM
Procedures are just functions though
, you can publish events
N
Nick
•
3/13/23, 7:57 AM
For your needs maybe just start with
“createCaller
”
N
Nick
•
3/13/23, 9:07 AM
Have you googled it yet
?
https://trpc.io/docs/server-side-calls#create-caller
Server Side Calls | tRPC
You may need to call your procedure
(s
) directly from the server
, createCaller
(
) function returns you an instance of RouterCaller able to execute queries and mutations
.
N
Nick
•
3/13/23, 10:46 AM
Your worker library should have a way to invoke a task
, and you just invoke using that API
N
Nick
•
3/13/23, 10:47 AM
What are you using for async work
?