将使用哪种类型的客户端/服务器体系结构? [英] Which type of Client/Server architecture will be used?

查看:113
本文介绍了将使用哪种类型的客户端/服务器体系结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个基于位置的社交网络(谷歌纬度)的Android应用程序,因此我的应用程序将使用哪种类型的客户端/服务器。将使用什么类型的客户端/服务器体系结构?有什么有用的网站,视频,书有关我的应用程序相关的客户端/服务器架构吗? (我是Android开发的新手。)

I want to develop an Android application based on location based social network like (Google latitude) so which type of client/server will be used for my application. What type of client/server architecture will be used? Is there any helpful website, video, book about client/server architecture related to my application? (I am new in Android development.)

推荐答案

您想在服务器上使用什么框架?你精通哪些计算机语言?

What framework would you like to use on server? What computer languages are you proficient in? Do you want to run this on your own servers or in the cloud?

一般的答案是:


  1. 在服务器上创建 RESTful服务。 REST是很常见的,并且在所有现代语言框架下都受支持。因为数据格式使用JSON,因为它更容易和更快速地解码然后XML和也更好地映射到对象。如果您在服务器上使用Java / servlet,您可能需要查看 Resteasy

  1. Create a RESTful service on server. REST is pretty common and is supported under all modern languages-frameworks. As data format use JSON as it is easier and faster to decode then XML and also maps more nicely to objects. If you use Java/servlets on server you might want to take a look at Resteasy.

在Android上使用与您的REST服务器通信。使用 Gson 生成/使用JSON并将其映射到您的对象。

On Android use HTTPClient to communicate with your REST server. Use Gson to produce/consume JSON and map it to your objects.

这篇关于将使用哪种类型的客户端/服务器体系结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆