G
Guest
Looks like I've got a lot of reading to do :
As I understand the concept of Singleton objects, they can only be instantiated once. Then, all other calls to that object rely on that previously created instance. If you have 300 hundred users, and each of them are doing multiple things (i.e. pulling data, executing stored procedures, etc..), and each time some communication to the data layer takes place, it must filter through that ONE instance (the Singleton obj) because IT is set up to be your data access object, then how does this architecture benefit you? Would it not become a bottle-neck due to their being only the one instance of it
As I understand the concept of Singleton objects, they can only be instantiated once. Then, all other calls to that object rely on that previously created instance. If you have 300 hundred users, and each of them are doing multiple things (i.e. pulling data, executing stored procedures, etc..), and each time some communication to the data layer takes place, it must filter through that ONE instance (the Singleton obj) because IT is set up to be your data access object, then how does this architecture benefit you? Would it not become a bottle-neck due to their being only the one instance of it