<p>At my day job we have load balanced web servers which talk to load balanced app servers via web services (and lately WCF). At any given time, we have 4-6 different teams that have the ability to add new web sites or services or consume existing services. We probably have about 20-30 different web applications and corresponding services.</p>

<p>Unfortunately, given that we have no centralized control over this due to competing priorities, org structures, project timelines, financial buckets, etc., it is quite a mess. We have a variety of services that are reused, but a bunch that are specific to a front-end.</p>

<p>Ideally we would have better control over this situation, and we are trying to get control over it, but that is taking a while. One thing we would like to do is find out more about what all of the inter-relationships between web sites and the app servers.</p>

<p>I have used Reflector to find dependencies among assemblies, but would like to be able to see the traffic patterns between services. </p>

<p>What are the options for trying to map out web service relationships? For the most part, we are mainly talking about internal services (web to app, app to app, batch to app, etc.). Off the top of my head, I can think of two ways to approach it:</p>

<ul>
<li>Analyze assemblies for any web references. The drawback here is that not everything is a web reference and I'm not sure how WCF connections are listed. However, this would at least be a start for finding 80% of the connections. Does anyone know of any tools that can do that analysis? Like I said, I've used Reflector for assembly references but can't find anything for web references.</li>
<li>Possibly tap into IIS and passively monitor the traffic coming in and out and somehow figure out what is being called and where from. We are looking at enterprise tools that could help but it would be a while before they are implemented (and cost a lot). But is there anything out there that could help out quickly and cheaply? One tool in particular (AmberPoint) can tap into IIS on the servers and monitor inbound and outbound traffic, adds a little special sauce and begin to build a map of the traffic. Very nice, but costs a bundle. </li>
</ul>

<p>I know, I know, how the heck did you get into this mess in the first place? Beats me, just trying to help us get control of it and get out of it.</p>

<p>Thanks,
Matt</p>

[{'answer_id': 44657, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': 2, 'selected': False, 'text': '<p>The easiest way is to look through the logs, but if that doesn\'t include the referrer than you may also want to monitor what is going out from your web to the app server.  You can use tools like Wireshark or Microsoft Network Monitor to see this traffic.</p>\n\n<p>The other "solution" and I use this loosely is to bind a specific web server to app server and then run through a bundle and see what it is hitting on the app server.  You could probably do this in a test environment to lesson the effects on the users of the site.</p>\n'}, {'answer_id': 46874, 'author': 'Doanair', 'author_id': 4774, 'author_profile': 'https://Stackoverflow.com/users/4774', 'pm_score': 1, 'selected': True, 'text': '<p>You need a service registry (UDDI??)... If you had a means to catalog these services and their consumers, it would make this job of dependency discovery a lot easier. That is not an easy solution, though. It takes time and documentation to get a catalog in place.</p>\n\n<p>I think the quickest solution would be to query your IIS logs and find source URLs which originate from your own servers. You would at least be able to track down which servers your consumers are coming from.</p>\n\n<p>Also, if you already have some kind of authentication mechanism in place, you could trace who is using a particular service based on login.</p>\n\n<p>You are right about AmberPoint. There are other tools that catalog the service traffic and provide reports showing what is happening to your services. Systinet, SOA Software and Actional also has a products similar to Amberpoint but Amberpoint has a free-ware version, I believe.</p>\n'}]
['https://Stackoverflow.com/questions/44644', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3262/']