Skip to Content

Anycast

Published: October 19, 2021

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.

Imagine, you've used the Console to create a Namespace named "example" with a primary Environment.

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:

example.wundergraph.com

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.


Product

Subscribe to our newsletter!

Stay informed when great things happen! Get the latest news about APIs, GraphQL and more straight into your mailbox.

© 2021 WunderGraph