Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It is recommended to create only one provider object per user and reuse it whenever possible. In a web application this is usually stored in a HTTP session. Modern web applications are making asynchronous requests to the server. It is likely that a session is used by multiple threads in parallel. Although it would be possible to synchronize the whole provider object, it is more efficient to make the small critical areas within the provider layer thread-safe. This also simplifies the life of web application developers.