Introducing global replica credentials
Apr 17, 2024Matt Robenolt, Iheanyi Ekechukwu

Summary
This post introduces global replica credentials and the underlying PlanetScale Global Network architecture that enables them. It details how these credentials automatically route reads to the nearest read replica globally, leveraging a CDN-like connectivity layer. The post explains the components of a connection (Route, Credential, Endpoint) and how the PlanetScale Global Network terminates connections at the edge, performs connection pooling, and routes traffic to the origin database. It highlights the dynamic nature of Routes and the use of latency measurements for real-time routing decisions, allowing seamless addition and removal of read-only regions without client-side changes.