<p>If I'm building an app and deploying it to a  GKE cluster, but serve users from multiple regions, how do I minimize latency from users to my cluster?</p>

<p>Do I have to:</p>

<ul>
<li>Deploy the same application to different clusters in different regions?</li>
<li>Use a load balancer with GKE as a backend service?</li>
</ul>

<p>Or is there any setting while deploying to make sure my cluster has minimal latency from a multi-region perspective?</p>

<p>Additionally, If I'm running separate frontend and backend applications. I assume the best practice would be to keep the frontend separate from the backend in two different clusters or in the same cluster and different pods?</p>

<p>You should deploy the both frontend and backend application into different kubernetes clusters in different data-centers located in different regions. You can use ingress to setup Google Cloud Load Balancer which can <a href="https://cloud.google.com/load-balancing/docs/https/https-load-balancer-example" rel="nofollow noreferrer">handle cross region traffic</a> for multi cluster Kubernetes environemnt.</p>

<p>You should use <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="nofollow noreferrer">deployment</a> to deploy multiple replicas of your pods.Additionally you can use <a href="https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity" rel="nofollow noreferrer">podAffinity</a> to colocate frontend pod and backend pod on same worker node.</p>

<p><a href="https://cloud.google.com/blog/products/gcp/how-to-deploy-geographically-distributed-services-on-kubernetes-engine-with-kubemci" rel="nofollow noreferrer">https://cloud.google.com/blog/products/gcp/how-to-deploy-geographically-distributed-services-on-kubernetes-engine-with-kubemci</a></p>

<p><a href="https://cloud.google.com/solutions/prep-kubernetes-engine-for-prod" rel="nofollow noreferrer">https://cloud.google.com/solutions/prep-kubernetes-engine-for-prod</a></p>

<p><a href="https://i.stack.imgur.com/ffD8a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ffD8a.png" alt="enter image description here"></a></p>
