Procedure not found error when invoking unregistered tRPC procedure
0 reputation · 10 Jan 2021, 21:17 UTC
Procedure not found error when invoking unregistered tRPC procedure
The goal is to maintain synchronization between client-generated procedure calls and server router definitions so that the tRPC runtime never returns a procedure‑not‑found failure, while operating a low‑traffic API where connection overhead and resource usage are concerns.
Constraints include the desire to reduce HTTP request count via batching, the optional use of streaming for real‑time updates, and the need to keep client‑side complexity low. It is unclear whether the latency and complexity introduced by batching outweigh its request‑saving benefits at low request rates, or if streaming adds unnecessary resource consumption.
- Should batching be enabled for a low‑traffic tRPC API to lower request overhead without unacceptable latency?
- Does enabling streaming provide measurable benefit when traffic is sparse, or does it increase operational surface needlessly?
- What verification steps can teams take to ensure client and server procedure registries stay aligned and avoid procedure‑not‑found errors?