asp.net - Is the Singleton Design Pattern good or bad practice for banking application in c#? -


is singleton design pattern or bad practice banking application in c# ? problem performance , security?

singleton design patterns used when don't want create more 1 object of class.

so depends on want do, , functionality trying implement.

for database connection can use singleton design pattern. transactions may want create thread safe singleton design pattern.

but whole, cannot said if singleton or bad practice banking service.


Comments

Popular posts from this blog

ruby - Train neural network with sine function -

Using django-mptt to get only the categories that have items -

android - Error generating Gradle in Eclipse ADT -