User-2064283741 posted
How many sites and servers and frequency of your changes are you talking about here?
Do you mean constantly changing what goes where? (say every minute looking at some logic to decide where the requests will go)
Or a script /api to change say adding a new one every week when a new domain /client comes in board?
To be honest I think you seem to over engineering the routing of traffic to your servers. Why can't you have all sites on all backend servers and just route traffic to any server based on the built in ARR Farm logic.
In general scripting is used for adding and removing servers to farms or changes to the urlrewrite section
So changing the Web or applicationhost.config
But it depends on what things you are changing.