-
1. Re: What's faster: API request or web app search via Ajax?
Liam Dilley Aug 13, 2014 4:59 PM (in response to Adam Cook)In terms of an app Adam?
-
2. Re: What's faster: API request or web app search via Ajax?
Adam Cook Aug 13, 2014 5:01 PM (in response to Liam Dilley)yep.
-
3. Re: What's faster: API request or web app search via Ajax?
Liam Dilley Aug 13, 2014 5:10 PM (in response to Adam Cook)Native first, script second, api third is the rule I run on.
-
4. Re: What's faster: API request or web app search via Ajax?
Adam Cook Aug 13, 2014 5:15 PM (in response to Liam Dilley)Well...I get the native first part, but an Ajax web app search is pretty similar in execution to an API request. Both require the server to return a live result as well. Perhaps, though, the search requires extra server-side steps to deliver the results.
-
5. Re: What's faster: API request or web app search via Ajax?
Liam Dilley Aug 13, 2014 5:43 PM (in response to Adam Cook)Ajax search of web apps below 800 - fine, if above then you wont return all results and have pagination so will miss out some results if they are big searches. Web app data pull will be similar but return all results better. Your web app search will be based on the layout you choose so the results would be pre-formated html based on a layout. Your API results will be the json response data of the whole thing you will then need to pluck out and form a rendered layout with or work with.
Depends on what you want to use the data for.
If it is to work out more calculations with your scripting then the API way would be the best but if your just wanting results and to display, the ajax would be the quicker method in general, not nessarily with the post but when you factor in everything.
-
6. Re: What's faster: API request or web app search via Ajax?
Adam Cook Aug 13, 2014 5:51 PM (in response to Liam Dilley)Thanks. That's good info.
Just occurred to me that the ultimate fast way of retrieving data in an app is just to render it on the page as a hidden JavaScript object. At least for initial data requests. I've done this several times on the front end, but there is always an inherent risk of users accessing sensitive data by looking at your source, which is why I started using web app searches instead. However, with an app, that isn't an issue at all.
-
7. Re: What's faster: API request or web app search via Ajax?
TheBCMan Aug 13, 2014 6:22 PM (in response to Adam Cook)Adam,
API will have overhead and you'll need to process the result yourself to display, but assume that BC also has to do the same thing with ajax calls. One would also assume that any good programmer would reuse code on the backend therefore most of the calls on the server side BC code to the databases (that Adobe have coded) should be the using the same queries / functions, it would all come down to the overhead between and processing getting it to the screen.



