Reposting to Shindig-Dev from the OpenSocial Application Development List:

Hi all,
I have some basic questions regrading best practices with using data
pipelining:
1) Is it possible to evaluate pipelining tags like HttpRequest and
PeopleRequest that are either dynamically inserted into the DOM via
Javascript, or within incoming responses from a HttpRequest or
makeRequest?
2) Error Handling/Retry: Sometimes the result of an HttpRequest or
PeopleRequest will result in error (for example when a server takes
too long to respond and the container terminates the request). Is the
most proper way to respond to these by evaluating the error condition
and retrying via makeRequest (and then pump the response from the
callback into the context DataSet?) Or alternately, depending on the
status of the first question, inserting another pipelining request
into the DOM and evaluating it?
2) What about scenarios where you only conditionally want to request
People resources? For instance, you might want to conditionally
request the owner friends based on whether you need a connection type
ahead search invoked by user action. In this case, is falling back to
makeRequest and the fetchPerson/People Javascript API best?
3) Any other best practices tips?
Thanks,
Taylor

Reply via email to