Thursday, January 27, 2011

Re: Two parallel asynchronous rpc calls possible?

Actually the benefit can be just as great when targeting traditional web servers, especially when there is high contention due to long running requests which block new requests from getting serviced. Breaking up the long running tasks into smaller atomic units of work that can run in parallel and require less cpu cycles to complete can provide a significant performance boost which users actually can experience and appreciate.

On Thu, Jan 27, 2011 at 12:29 PM, Gal Dolber <gal.dolber@gmail.com> wrote:
Yes, the "in general" was specifically for appengine, many of my "high cpu request" are generally batch rpcs. But outside of appengine I've seen great results of batching rpcs.

Best


On Thu, Jan 27, 2011 at 2:01 PM, Jeff Schwartz <jefftschwartz@gmail.com> wrote:
I'm glad you qualified your comment with 'in general' which IMHO is still not true and I believe it really depends on your use case. For instance, if you are targeting App Engine you certainly want to leverage parallel async calls because of the quota system that is enforced on Google's APIs and all server requests and that is only one of numerous use cases that I can think of that could benefit from using parallel async calls.

Jeff

On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber <gal.dolber@gmail.com> wrote:
Yes, it is possible, every rpc call is asyc, so if you call two rpc methods one after the other they'll be executed in parallel. In general it is better to batch the "parallel" methods in one rpc call.

On Thu, Jan 27, 2011 at 1:41 PM, joe kolba <joekolba09@gmail.com> wrote:
Why not just make one call to a service and call different methods within your service object?  You can put methods in your serviceImpl that are not RPC methods.


On Thu, Jan 27, 2011 at 11:17 AM, ghost23 <sven.busse@googlemail.com> wrote:
hello,

i have a service. I create an instance of it via
GWT.create(MyService.class). Then i call a method on it, get the
result, everything works nicely.

Now i need to call two methods on that service more or less in
parallel. I tried this (either using the same service instance or two
distinct ones),
but now i get weird results, sometimes, the objects cannot be de-
serialized or i get exceptions, that the objects are of another type
and so on.

Is it basically possible to make two parallel calls to a service?

Thank you.
Sven

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Jeff Schwartz

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Jeff Schwartz

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment