Answer
Transient: New instance each request.
Scoped: One instance per HTTP request.
Singleton: One instance for entire app lifetime.
Wrong lifetimes cause concurrency bugs, memory leaks, or stale state.
Transient: New instance each request.
Scoped: One instance per HTTP request.
Singleton: One instance for entire app lifetime.
Wrong lifetimes cause concurrency bugs, memory leaks, or stale state.
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ