Class EC2MultiRegionTranslator
An IAddressTranslator implementation for multi-region EC2 deployments where clients are also deployed in EC2 in order to optimizes network costs, as Amazon charges more for communication over public IPs.
Its distinctive feature is that it translates addresses according to the location of the server host:
- Addresses in different EC2 regions (than the client) are unchanged
- Addresses in the same EC2 region are translated to private IPs
Inheritance
System.Object
EC2MultiRegionTranslator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse
Assembly: Dse.dll
Syntax
public class EC2MultiRegionTranslator : IAddressTranslator
Methods
Translate(IPEndPoint)
Addresses in the same EC2 region are translated to private IPs and addresses in different EC2 regions (than the client) are unchanged.
Declaration
public IPEndPoint Translate(IPEndPoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | endpoint |
Returns
Type | Description |
---|---|
System.Net.IPEndPoint |