Reputation: 305
I'm writing a mobile app which at high level does:
My current approach is to create a web service which handles communication with the third party vendor and also takes care of filtering logic, which contains a fair amount of calculation.
The downside of this approach is the extra hop from client's perspective since there will now be two web service calls (client -> custom service, custom service -> 3rd party vendor)
On the plus side, the filtering logic and future enhancements will be completely agnostic of operating system and I don't need to write custom code for Android & iOS.
Is this the right approach?
Upvotes: 1
Views: 79
Reputation: 2534
It is, under the following scenarios:
Otherwise, calling directly from the client will be less of a headache, in spite of the extra amount of coding you mentioned.
Upvotes: 1