In the recent period of time has been doing the app interface, summarize the app interface development process considerations:
1. Efficiency: Interface Access speed
The app is different from the Web service, the server-side requirements are more stringent, in the mobile side of the limited bandwidth conditions, the requirements of the interface response speed, all in the development process as far as possible to choose the efficient framework, PHP recommends the use of the YAF framework.
2. Data format
It is best to use JSON-formatted data because JSON has a good cross-platform nature. For
3. Data volume
On demand, the app client needs what data to return what data, too much data volume affects the processing speed, the most important is the impact of transmission efficiency.
4, interface, parameter naming accuracy
Whether it's an interface or a parameter, naming should be meaningful and straightforward.
5, a page as far as possible with an interface
Now many of the app pages have ads, focus maps, lists of articles, and so on, for these different formats of data, it is not possible to allocate an interface, which increases the number of app request interface, affecting the response speed. It is recommended that the server handle the data as well as possible and return it to the app client via an interface.
6. Cache
This is more important, whether it is the file cache or the memcache cache.
7, the interface should be extensible
8. Interface Security
At present, in the app client and server through the contract algorithm, the passed parameter value is verified to match. However, if the app is recompiled, these conventions will be exposed, especially in the Android app, with an algorithm that completely validates the analog interface request.
9. Interface Version Control
For the interface version control, I have not found a good method, how to deal with the continuous application version upgrade, the new, the old interface processing.
10. Interface data, status
The interface must provide explicit data state information, whether successful or failed, and must be returned to the app client.
The above 10 points is their own in this time to do the app interface process notes, write a bit messy, think of what to write.
About App Interface design