| Sign In/My Account | View Cart |
| Article: |
Using the Singleton Pattern | |
| Subject: | Singleton Considered Harmful | |
| Date: | 2003-08-29 05:15:05 | |
| From: | diegof79 | |
|
Response to: Singleton Considered Harmful
|
||
|
I agree with your comment, for more information on why the singleton pattern is considered harmful see:
|
||
Showing messages 1 through 2 of 2.
From an enterprise application point of view,
There are often services which are deployed as singletons. For eg, JNDIlookUpDirectory of the application.
Only one instance manages the addresses in the directory.
The problem wiyth singleton, classes, is that they cannot be deployed in a clustered environment.
If deployed, only one instance of the clsuter will have this singletton class instantiated else it will fail.
In cases, where scalablity and failover is desired, singleton pattern offers a bottleneck.
Is there any work around for such singletons, already existing in this existing application.
Regards,
Dimple