I'm currently in the process of doing a proof of concept of moving from our current IAAS provider to Azure. We're currently just serving multiple LOB Web Apps on a 2 tier setup consisting of:
- Web Tier/Box 1: Web facing with IIS holding all Web Applications
- SQL Tier/Box 2: Non web facing. Web box talks directly to SQL box inside network.
Im wanting to run this as the following setup inside Azure: 1. Azure VM: This VM will be web tier. Due to legacy parts of our apps it would not fit within websites or Cloud services. 2. Azure SQL DB's: We will just push all our SQL database into Azure DB's and connect to them from the VM.
I've got this setup and working. The only problem is there is a major latency hit which seems to be from the VM web app talking to azure database. Im connecting to the SQL Azure DB with the connection string provided through the portal. Is there any reason that the connection is so slow (sometimes latency > 4 secs)? Is there any firewall or end point rules that i need to set? Or is this setup not optimal?
Thanks