AWS Elasticache PHP Sessions with ELB and Web Servers at different Data Centres

amazon ec2amazon-elasticacheamazon-elbamazon-web-services

I'm running an AWS Load Balancer with Web Servers at different Data Centres.

I need to start using PHP Sessions on Elasticache to Centralize Session Management.

I can create an a 2 node Elasticache setup with one node in each data centre but I'm concerned that there will be an impact to speed if cache data needs to be access on a cache server that is in the opposite data center to the requesting web server.

Is this the case? Or is there no or very minimal impact to speed?

Best Answer

Having two ElasticCache nodes replicating across regions isn't going to work very well. The network latency caused by being separated by 2,500 miles will negate most/all of the performance gain.

You shouldn't need to be sharing session data across regions though. Setup latency-based DNS routing in Route53, which will route each user to the closest datacenter automatically. Their sessions will live within their region.

Related Topic