I experience random errors (several per day) in my mvc + ef + single application at a higher load (10 + request per second):
I use this implementation of PerRequestLifetimeManager and have tried Unity.Mvc3 too without any difference.
There are some clues that the DbContext is not being deleted correctly. I am not sure that the cause of the problems is request-by-request, because this seems to be common practice .
, DbContext , Rashid PerRequestLifetimeManager . Unity.Mvc3, , , , , .
, , .
SELECT ... FROM X JOIN Y ... JOIN Z ...
BEGIN TRAN UPDATE Z ... UPDATE Y ... COMMIT TRAN
SELECT Y Z, TRAN Z Y