I'm following this procedure to deploy new application versions to EC2. When the new version proves stable, I update the A record of the DNS entry to route the traffic to the IP address of the new server.
I guess this is not the best practice, especially because you can't be sure when all your visitors' DNS cashes have updated the entry so that you can take the old version offline.
Are there any best practices for this? Do I have to create an own server with its own IP address where I can configure the routing (expensive)? Or can I utilize the service of my hosting provider to do that? Or is there an AWS-specific solution?