3-tier design and scalability?
Ok, there is what I need:
I need to build 3-tier(n-tier) application where the main issue is scalability. What that mean? Presentation layer is on many machines in lan, business layer is on one(two or more) servers, also data access layer is on server. My problem is: if some servers, where lies business objects(layer), is to loaded I need to move some business objects to another(new) server without changing anything in presentation layer. My question is now to manage communication between presentation and business layer? Obviously, I can't use 'add reference' in pres. layer, because I don't know where business object will be (on which server).
I think to solve that with remoting, but again (I think) I must know exactly location of server, what I don't know because it may be one, two or more servers.
What you think, what is solution?
regard j
Re: 3-tier design and scalability?
Quote:
Originally posted by janis
Obviously, I can't use 'add reference' in pres. layer, because I don't know where business object will be (on which server).
The business layer and GUI layer should always be independant, and should never interact directly. You should have a Controller class sitting between the two that handles all the communication.
As for remoting, can't help you there I'm afraid. Have a look at the Factory Design Patten as this would enable you to implement code that react to runtime situations.