3 ms·
The functional pattern on every request is quite common. Think gRPC-go's withContext(withDeadline()) pattern.
by jeffbee 4y ago
The functional pattern on every request is quite common. Think gRPC-go's withContext(withDeadline()) pattern.
- wbl 4y agoIf you are trying to shave nanoseconds off an RPC you have architectural issues.
- jeffbee 4y agoIf you approach every program with that attitude you will never have an RPC subsystem where nanoseconds matter. You will be trapped in a self-fulfilling process where nanoseconds don't matter because the system is slow.
- lmm 4y agoIt's physically impossible for nanoseconds to matter for remote calls - most individual servers are larger than one light-nanosecond.
- jeffbee 4y agoThe efficiency of initiating the call limits how many calls the program can initiate per second, per thread. The potential latency of the response is irrelevant.