Calling a client or server for a google API?

I am writing a web application with GWT and I have to call the google calendar API to get some information. I now have this dilemma: is it better to use a client-side call (using the javascript library or gwt-gdata) or use the google standard library for java to call the server side service and then pass all the data to the client using an asynchronous call? I can't figure out the pros and cons of the two approaches ... Specifically, I need to call the calendar API multiple times to fetch events and allow users to add new ones, etc. Can you help me?

+2


a source to share


2 answers


Check the efficiency of using the server library. I found in the search library that the round trip times from client to server and back to client were too slow.



+1


a source


I would call it from the server side. Why?



  • this means your client side view code is view only. You don't confuse questions by calling multiple services and you provide separation of concerns.
  • you can use strategies like server side caching.
+2


a source







All Articles