Singleton pattern, Suitable for multi-user websites ?

I come from a Java background and I was just wondering if a Singleton
pattern is suitable for websites with heavy traffic.
Of course the most common example given is the DB connection, and maybe
a cache of connections, and a checkout/checkin strategy is more
appropriate.

Can use of a Singleton restrict resource usage and cause processing
backlogs, such as deadlock ?

Leave a Reply

Your email address will not be published. Required fields are marked *