0

I have an EC2 instance in the Asia Pacific (Singapore) region that I'd like to connect to a Elasticache instance launched in Oregon (US-West) region.

After reading through, I understand that Elasticache can only be access from instances within the same VPC.

Is there a way to allow for such communications?

David C
  • 123
  • 6

1 Answers1

2

Yes but not directly. You can use something like HA Proxy to provide access. This could defeat the purpose of Elasticache though - you may want to use vanillia Redis so you can synch using the Redis native tools otherwise your queries are going to have some serious latency.

TheFiddlerWins
  • 2,973
  • 1
  • 14
  • 22
  • Thanks! You mean like a haproxy sitting in the same region as the elasticache which would then forward the packets from the other region into? – David C Jan 16 '16 at 07:40
  • Yes but it will probably really slow (relatively speaking) because of the latency between Singapore and the US. Depending on your use case you may want to use a Redis cluster (with nodes in each region) or a message queue. – TheFiddlerWins Jan 18 '16 at 13:50