amazon web services - Connect ec2 instances in different sites -


i have set 3 hosts in ec2 in different sites [1] should connect rabbitmq-server instance. have read post, still little bit confused.

right now, hosts have private ip , public ip used access instance. have authorized traffic access rabbitmq using security groups. want connect hostb , hostc hosta. should have elastic ip hosts, or need vpc?

[1]: hosts have set

hosta in oregon , has rabbitmq-server running. hostb in oregon application connects rabbitmq-server hostc in california application connects rabbitmq-server 

there 2 options

1) run rabbitmq in oregon listens on elastic ip. use address in other servers send traffic

2) set peering vpc in different regions can talk each other http://docs.aws.amazon.com/amazonvpc/latest/userguide/vpc-peering.html

option 1 simpler need careful attention security option 2 more complicated means other services (part rabbitmq) across regions easier/work better

option 2a) using combination of vpc , vpn outlined here. http://aws.amazon.com/articles/5472675506466066


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -