On Tuesday, January 25, 2011 7:16:04 AM UTC+1, zixzigma wrote: > > Hello Everyone, > I have read that GWT 2.1 RequestFactory aggressively caches data and only > sends whats necessary(diffs/deltas) to the server. >
Actually, no: http://code.google.com/p/google-web-toolkit/issues/detail?id=5650 And the diffs/deltas are computed relative to RequestContext by comparing the mutable instance (the one returned from .edit()) with the "frozen" one (the one you passed to edit() in the first place). > I have three questions regarding the specifics of the this caching. > would be very grateful if you provide some pointers. > > - does RequestFactory store the data (entity/value proxies) on the client > side (within the browser)? > (using an internal DataStructure such as a Map ?) > No. > - given that RF caches data aggressively, > is it still valid to create a custom client-side cache and > manually store already retrieved Entity/Value proxies > in that cache, so that upon user request, instead of asking RequestFactory > right away > to give us the data, we first lookup the Cache, and if present return the > data from the cache, > and if not, only then asking RequestFactory. will there be any performance > gain doing this ? > Given that RF does *not* cache data, it is still valid; and RF gives you the tools to do that: http://code.google.com/p/google-web-toolkit/issues/detail?id=5523 (direct link to the referenced wiki page: http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1) > - does every call on RequestFactory result in a Server roundtrip ? > Currently, every call to fire() results in a call to the RequestTransport, and with the DefaultRequestTransport it results in a server roundtrip (but you can use your own RequestTransport on the client-side, with an associated servlet/filter on the server-side, to batch requests; in theory, you could even use a Comet-like connection such as WebSocket or AppEngine's Channel API) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
