Originally posted by Mallik Hiremath:
. . .EJBs in large systems and your experience with . . .CMR relationships in large system? . . .
--Mallik
Mallik,
I am interested in the problem you described because I'm facing the same issue. Lets keep in touch about it. Its important to the whole EBJ/CMR technology.
Regarding someone's comment, I don't think the occurrance of 10,000 entities suggests "indiscriminant" application of the CMR construct, nor is our use of CMR restricted to web apps with an inherently small search space.
Regarding "judging" trade-offs...
One thing I would look at is the timeout settings; also space utilization. Sorry I don't know anything about JBoss administration specifically. But it seems to me that with sufficient hardware resources (space and speed) that CMR should work, even with 10,000 entities. But I would want to be able to
calculate the speed and space requirements needed before I waste time tweeking designs. So...
Perhaps a little Taguchi experiment would be appropriate: perform a series of trials on progressively larger sets of data and tabulate the response times; apply the usual design-of-experiements techniques.
As in Architecture, you want to know the performance characteristics of the "materials" you are working with so that you can calculate where the critical trade-off values are. Otherwise, we are just kind-of-guessing.
Armed with a performance curve for your particular application and environment, you can then determine what the safe timeout + margin_of_error setting should be (assuming it
can be administratively set), or if a different architecture will be needed.
But this above all else, to thine own performance functions be true! Good luck
Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA