What type of client / server architecture will be used?

I want to develop an Android application based on a location-based social network, for example (Google Latitude), so what type of client / server will be used for my application. What type of client / server architecture will be used? Is there a useful site, video, book on client / server architecture related to my application? (I am new to Android development.)

+4
source share
2 answers

What structure would you like to use on the server? What computer languages ​​do you speak? Do you want to run this on your servers or in the cloud?

General answer:

  • Create a RESTful service on the server. REST is fairly common and supported in all modern languages. JSON is used as the data format, since it decodes easier and faster than XML, and also displays objects better. If you use Java / servlets on the server, you can take a look at Resteasy .

  • Android uses HTTPClient to communicate with your REST server. Use Gson to create / use JSON and map it to your objects.

+7
source

I would say using CRest and ignoring all those red eyes that say you have to invent your own bike using HTTPClient and GSON / org.json. It is not worth it. You need a client-server communication channel, right? Just take it.

0
source

Source: https://habr.com/ru/post/1342453/


All Articles