0
Answer

How IOC container avoid Singleton issues?

mursaleen fayyaz

mursaleen fayyaz

11y
1.2k
1
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