We live in a world where services are available to a wide range of people, spanning across multiple countries.
In this scenario, our goal should be to bring our services as close to our customers as possible. Our users expect low latency applications.
One problem we usually cannot solve is putting our source of truth (database) in multiple locations without extra latency. There will always be some latency for write operations if we value consistency.
However, other parts of our system, like Establishing a secure connection to the client, Authentication and Caching are very good candidates to put them as close to the user as possible.
WunderGraph does exactly this. We operate WunderNodes around the globe, as close to users as possible.
But there's a catch. How do we make your users aware of using the nearest WunderNode for authentication, caching, etc.?
That's where anycast comes into play.
By doing so, we'd automatically provision WunderNodes to multiple regions across the globe, depending on your configuration. Additionally, we'd create a Domain Name for your primary environment like so:
This domain name is backed by a Anycast IP. Clients all across the world will always connect to the nearest WunderNode if possible. This makes it very easy for WunderGraph to deliver super fast Handshakes, Authorization flows and, the best of all, it enables Caching super close to your users.
Read more about Edge Caching in the next section.