Hello,
I am laying out the architecture for a very large website that will
scale to a very large degree.
I have a couple of questions before I attempt to go and implement a
Broker/Persistence Layer.
1. With a broker layer, does this layer sit at the same level as the
Business Layer? So to speak, the presentation layer has knowledge of
both BL and PL? and then ONLY the PL has knowledge of the DataLayer?
Correct?
2. Should the Persistence layer be handled as a Singleton object?
3. Initially I am envisioning that I will have an encrypted cookie on
the client side that only holds the users unique id, then upon postback
the presentation layer gets the User business object from the
persistence layer and the persistence layer saves the object to Cache.
Is this correct?
Up to this point when creating apps, I was always a little
uncomfortable with mixing all the data persistence in the business
layer, thats why I think this approach is much more appealing.
Any other pointers before I embark?
Thanks for your help guys!!
Sean