mursaleen fayyaz

mursaleen fayyaz

  • NA
  • 84
  • 125.6k

How IOC container avoid Singleton issues?

Jul 16 2013 2:52 PM
Hi people,

Issues:

1. The default implementation of Singleton pattern is not thread safe and should not be used in multi threaded environments including web servers (e.g; ASP.NET)

2. Singletons introduce tight coupling between collaborating classes

3. Singletons are notoriously difficult to test.

Thanks,
Mursaleen Fayyaz
Jr. Software Engineer