Reputation: 4394
I've defeloped a GWT + GAE app using GWT RPC mechanism for client-server communication. Now, I want to integrate some of the services offered in an Android app. But I have discovered that this implementation is no longer recommended and has been removed from GPE 3.0 (google eclipse plugin), so the cloud endpoints is now used (RPC tooling not available for appengine connected android project for GPE 3.2?).
I would like to know why is this method adopted (and the other one removed suddenly), because the code needed for implementing client-server communication seams much more complicated (for me at least) when using Cloud Endpoints, rather than GWT's RPC, where it's very easy to add new classes, the code seamed very easy to scale.
Why is Cloud Endpoint better than GWT RPC? What are the advantages and disadvantages of these two approaches ?
Upvotes: 2
Views: 879
Reputation: 17854
The advantage of cloud endpoints (and other REST/JSON based solutions) compared to GWT/RPC is that they are language agnostic. In the case of cloud endpoints, Google tooling directly supports Android, Web, and iOS, but since they generate a description of the interface they can also support any technology that can use that description.
Endpoints also makes OAUTH authentication relatively easy, but I can't comment on how that compares to GWT.
Upvotes: 4
Reputation: 80340
My personal opinion: they both suck, because they are proprietary and opaque. Google is a great engineering company, but this two are IMO both a mistake. I guess they wanted to tie developers to their proprietary APIs - this is so MS from 1990s.
I use REST+JSON. My personal favourites are RESTEasy + Jackson, which work flawlessly on GAE.
Advantages:
Granted, the learning curve is a bit higher, but at least you'll be in control.
Upvotes: 1