Hi there. I have some problems with decisions on the design of ASP applications.
The most articles i read in the last time, said that you should use instanciated services instead of static or singletons.
But i get some headache, thinking about creating all services for each request i get and keep them in memory till garbage collector destroys them (regarding performance issues). I like the idea of global static or singleton services, but then get a headache when i think about thread-safety.
Lets say you have a application with an ASP frontend and some services in the background like DBService, ImportService, ExportService, UserService, CalculationService.
What would you do? Create services for all threads to use at application start? Create all services for each request? Only create the services that need a state per request and leave easy methods static?
Thanks in advance, Marks