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

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

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