- use asynchronous calls, don’t load the whole thing over and over;
- use OAuth, don’t use SOAP;
- use JSON, don’t use XML.
When designing an application that will communicate with a remote computer, a data format and exchange protocol must be selected. There are a variety of open, standardized options, and the ideal choice depends on the applications requirements and pre-existing functionality. For example, SOAP-based web services format the data in an XML payload wrapped within a SOAP envelope.