C
C.
Hello,
I have always made CRUD methods on my Business Objects static.
However, after going through the MS cert training kit 70-515, I came
across this:
"if the business layer uses static methods (or shared methods, in
Visual Basic), the ObjectDataSource can use these
methods without creating an instance of the actual business object. In
this case, however, keep
in mind that you could end up with performance issues related to
thread contention as multiple
requests try to access the same static method."
This passage would seem to suggest that each thread can only enter a
static method one at a time. If so, wouldn't this cause scalability
issues if a static method is used frequently in an application?
I had never heard this, any explanation would be appeciated!
Chris
I have always made CRUD methods on my Business Objects static.
However, after going through the MS cert training kit 70-515, I came
across this:
"if the business layer uses static methods (or shared methods, in
Visual Basic), the ObjectDataSource can use these
methods without creating an instance of the actual business object. In
this case, however, keep
in mind that you could end up with performance issues related to
thread contention as multiple
requests try to access the same static method."
This passage would seem to suggest that each thread can only enter a
static method one at a time. If so, wouldn't this cause scalability
issues if a static method is used frequently in an application?
I had never heard this, any explanation would be appeciated!
Chris