In which cases to you need to watch out for Concurrency problems (and use lock for instance) in ASP.NET?
- Are there ‘best practices’ around on this topic
- Documentation?
- Examples?
- ‘worst practices…’ or things you’ve seen that can cause a disaster…?
I’m curious about for instance singletons (even though they are considered bad practice – don’t start a discussion on this), static functions (do you need to watch out here?), …?
Since ASP.NET is a web framework and is mainly stateless there are very few concurrency concerns that need to be addressed.
The only thing that I have ever had to deal with is managing application cache but this is easily done with a cache-management type that wraps the .NET caching mechanisms.