Server to Mobile Device Communication: A Case Study
Develop a client-server application for a mobile environment can bring many challenges because of the mobile devices limitations. So, in this paper is discussed what can be the more reliable way to exchange information between a server and an Android mobile application, since it is important for users to have an application that really works in a responsive way and preferably without any errors. In this discussion two data transfer protocols (Socket and HTTP) and three serialization data formats (XML, JSON and Protocol Buffers) were tested using some metrics to evaluate which is the most practical and fast to use.
KeywordsClient-Server Communication Mobile Applications Protocol Buffers Performance
Unable to display preview. Download preview PDF.
- 2.Crockford, D.: JSON: the fat-free alternative to XML. In: Proc. of XML, vol. 2006 (2006)Google Scholar
- 4.Google: Protocol buffer (2012), http://code.google.com/apis/protocolbuffers/docs/overview.html
- 5.Harold, R., Loukides, M.: Java network programming. O’Reilly & Associates, Inc., Sebastopol (2000)Google Scholar
- 7.Pautasso, C., Zimmermann, O., Leymann, F.: Restful web services vs. big’web services: making the right architectural decision. In: Proceeding of the 17th International Conference on World Wide Web, pp. 805–814 (2008)Google Scholar