Once we create a thing in AWS IOT Core, we get an endpoint which has to be used by java program in the device to connect to AWS IOT.
The endpoint *.iot.us-west-2.amazonaws.com has region in it. This end point has to be configured in device which we want to avoid. The reason is to have low latency when device communicates with AWS IOT. For this, we were planning to have a registered domain and create a hosted zone in Route53. Then map this domain to the actual end point. In Route53 we can select the "Geolocation" as a routing policy and create records for each region and map the corresponding endpoint.Do you think this a good solution?
The purpose is -
- The device should not be aware of the IOT endpoint,
- Route 53 should be able to identify the region of incoming traffic and directs it to the corresponding endpoint as specified by various records in the hosted zone.
Another question is - The program on the device which is connecting to AWS IOT is MQTT client. Will it be able to connect to Route53? (Route 53 is not an MQTT server.)