CosmosDB and Static Web App being in different regions
I'm new to Azure (I'm on the free tier) and cloud computing in general, I was creating resources on Azure using Terraform and I wasn't aware that Static Web Apps are only available for 'westus2,centralus,eastus2,westeurope,eastasia' so I had both my CosmosDB account and the SWA instance set to southeastasia.
So now I'm wondering whether it would be better to keep CosmosDB in southeastasia and SWA in eastasia or have them both in eastasia. Having lower latency would be nice since this is for an Edge AI/IoT project where the user would be able to control an end device through the website but I just wanted to know what would be the better option. Also it would be nice to know whether SWA is the best option for my use case, the website was created using react and there are some features like the dashboards, end device controls in the website, so I'm not sure whether SWA is the best option or whether running the website on an Azure VM would be better.