ajax - which client side architecture should be followed -
i developing web site in using rest web services, there 2 ways of making calls rest web services..
1. directly through ajax
2. ajax calling servlet in turn make call rest web service
personnel experience have observed companies tend follow 2 approach...
there reason following approach ?? though can bring same effect following first approach less coding effort...
there advantage being achieved second approach missing ??
thanks...
the advantage of second case have back-end process on data before hits front-end. can manipulate before goes client, store , use caching , track analytics on data. doing on front-end makes processes hard, though it's possible.
also have manipulate data it's read on client. if none of important you, first option way go.
Comments
Post a Comment