In a multi-DC private cloud setup how to route requests from a client to the same DC

In a multi-DC private cloud setup where the DCs are placed relatively close to each other how do we send the requests from a client to the same DC as it started with.

0 2 169
2 REPLIES 2

You need an address table. Something like:

  • a DNS that resolves a name to different IP addresses based on the caller's IP,
  • a "hard-coded" configuration, where each client stored the name of the API endpoint, and clients in DC 1 use "api.dc1.company.com" and clients in DC 2 use "api.dc2.company.com"
  • an intelligent client that knows its own hostname and derives the api endpoint name from it. For example a client can examine its hostname and find "client1.dc1.company.com" and therefore conclude that it should use api.dc1.company.com for the API endpoint.

Thanks @dino

To expand on #1, use geolocation or similar traffic patterns to send consecutive calls to the same region as long as it is available or the criteria holds. Thanks @Maudrit.

It is desirable to manage this on the server side as much as possible.

When a client happens to be a server that makes many requests, we will need strategies to load balance yet provide some stickiness. Are there any commonly used strategies.