Server-side synchronization for mobile applications or client-side

if a mobile application needs to receive data from several servers, is it better to call each server from a mobile device or call one server, which then talks to all other servers?

"should synchronization be initiated by a server or mobile client?" the extent to which the client performs accounting.

Tell me if the application is a mobile mail client or a voicemail client in both cases.

+4
source share
2 answers

Some of the main problems with mobile synchronization of personal information are battery life and temporary loss of connection.

Thus, the usual way to do what you describe is to force the server to process most of the complex logic and multiple data sources to create a dataset that needs to be synchronized, and then have a proprietary protocol between the server and the client to mirror only that dataset .

In fact, the connection to the server will always be initiated by the client, regardless of how many people talk about push email. Your client application may have a user option so that the phone remains on the network, as far as network conditions permit. The server can respond to the connection by automatically sending the latest data necessary to synchronize with the client.

+4
source

A very vague question, but I would say that both may be necessary. Your servers must coordinate as much as necessary so that the data stored between them remains consistent. An erroneous or malicious client should not cause damage or inconsistencies in the data stored on the server. The client must perform any synchronization necessary to ensure the consistency of the local copy of the data and not to dump garbage to the servers.

0
source

All Articles