Tuesday, March 29, 2011

Re: Howto: Optimising RPC

I had the same issue with the command pattern. The problem is that all commands/results implement a common interface. The first time the service is created, it needs all the Marshalling code for all commands/results. The only way to avoid this is to have different services that define unique interfaces for their commands/results i.e. ServiceACommand interface and ServiceAResult interface.

In the end I gave up on the command pattern and switched back to standard RPC with different services for each logical area.I added common error handling / version checking in a service facade.


--
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