Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Subdomain or Host routing in Application Gateway

$
0
0

Hi! I cannot figure out if there's a solution in place already, or I should go with a workaround.

Disclaimer: I'll try to focus on the request routing piece, for a much bigger solution. Please bare with me as i skip some pieces on trying to make this readable.

Scenario: multi-tenant (subdomain based) self service platform. Each tenant points at a Platform instance (given selected subscription plan) that holds its own infrastructure (web app + services + DB + etc). Each instance is binary equal to the other, differing on compute capabilities (expensive plan, more capable infrastructure).

After provisioning a new tenant, including setting up a Hostname (i.e. self-site-1.domain.com) under the Web Apps Custom Domains "tab", DNS Record, and a bunch other things that don't matter to the question in hand...

Question: I'd like to setup an Application Gateway to route requests to each of the 3 possible targets, based on which plan the requested host belongs to.

Origin => DNS => Application Gateway (public IP(s)) with lookup based on host (or custom domain) => Web App instance infrastructure to handle request & response.

Is Application Gateway a way to go here? It has URL routing capabilities, but after the host piece of the requests URL.

If not, alternatives are "DNS Mapping" (more maintenance, downtime when switching subscription for a client). Code our own Application Gateway like service (?).

Regards!


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>