Hi,
when I deploy my application on two machines connected via LAN, loading about 10 records is awfully time-consuming. That is why I am thinking about implementing asynchronous loading, either as a simple callback or via the Publisher/Subscriber
pattern (that is, events).
On the other hand I am afraid that this could be overkill.
PROS:
The perceived performance improves (although not the actual performance).The callback pattern is a standard solution in RMI, and Events are supported by Java.RHE has a nice chapter on events - which makes it an eligible technique in my opinion. CONS:
My requirements say performance alone is not a justification - however, I'd stress "alone" in this context.
My requirements say a design that can be easily understood by a junior programmer would be preferred. The second question is, which technique is more preferable?
Did anybody implemente asynchronous loading? If yes, how was it marked?
Any comments are welcome!