It really depends how intelligent you want your store to be. For example, 
if a user is perusing a set of N objects, and you hit the server up for 3 
of these objects, you'd want to first check your LocalStorage cache for any 
of those 3 objects (say 2 hits), via a proxy cache, and relay on the RPC's 
for the (1 object) cache misses. This way, after playing around a little 
bit in your app, most requests will be local cache hits and you minimize 
request time and UI latency. Then you also need to limit what's in the 
cache, so you need a LIFO approach like LinkedHashMap. To do this however, 
there is no need to change your GWT-RPC code, but rather make requests to 
you client side caching layer, not directly to the RPC, and let that layer 
make the RPC requests.

That however is an intelligent caching strategy we used for 10K expensive 
objects. I suspect you want a passive GWT-RPC cache which would be most 
readily achieved by exploiting the browser cache with cache headers, but 
consider how you'll expire those objects (TTL?).

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/u-kpDVEZUOUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to