Canonical patterns: deterministic tests, RPC rotation, latency trimming, CI flake prevention.
Rank endpoints by latency, rotate on error via a provider proxy, and keep types + CI solid.