Home  /  Questions  /  Question



60   95.3
Sep 17, 2010


Separating Patterns in Action into 3 Physical Tiers

So - being new to WCF and the Patterns in Action architecture - I want to deploy my WPF solution on three physical tiers.
The first tier is a Windows PC and the Presentation Layer will be hosted there. The second tier is our application server and the Hosting Layer, Service Layer, Business Layer and Data Layer will all be resident there.The third tier is our SQL Server that contains our data.

An incentive for this split is that a web project will soon follow and want to use the same services.
Does this seem reasonable? Am I misunderstanding something basic that would make this a poor solution?  



73   96.1
Sep 19, 2010
Btw what does WPF hosting on first physical tier mean? If you are trying to host WPF as browser application, then it can be hosted on the same IIS box as the service layer. I assume you meant WPF application installed on the client machine.

You are correct about hosting services on 2nd machine - the service layer should be the only entry point for any external request (either from a WPF, ASP.NET web or a mobile device). Also in future one can easily scale the application or provide multi-tenant feature through re-directing services (through routing feature in 4.0) to services running on different machines.