mursaleen fayyaz

mursaleen fayyaz

  • 2.2k
  • 84
  • 121.1k

How IOC container avoid Singleton issues?

Jul 16 2013 2:52 PM
Hi people,


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.

Mursaleen Fayyaz
Jr. Software Engineer