Array

Data Format and Synchronization Considerations

Must Read

Can Debt Consolidation Loans Help Those With Bad Credit?

With the large rise in debt happening across the world, coupled with the decrease in late payment tolerance by...

What You Should Know About Student Loan Consolidation Rates

When most people think of Student Loan Consolidation Rates, what comes to mind is usually basic information that's not...

Research Everything About Student Loans Consolidation

When a student is in college, they can literally become overwhelmed with the financial obligation. There is a price...

Events

EventDispatcher is the base class for all objects that can be a target for events. Many native classes inherit...

Wells Fargo Home Modification – Have You Been Denied?

Many people are trying to get their home loans modified, but if you have a mortgage through Wells Fargo,...

Motorcycle Accidents and Motorcycle Insurance

The following article is motorcycle accidents and how they play out legally. The following is not legal advice, but...
Admin
test

One way to reduce memory, storage, and communication bandwidth requirements is by choosing an appropriate format for the data and compressing the data. OData and other protocols support JSON serialization, or you can implement your own serialization for communicating and storing data. JSON serialization reduces the size of the data sent over the wire when compared to XML formats, which can reduce transmission costs. Compressing data sent between the server and the device is also a useful way to minimize data transfer costs when using slow and/or expensive network connections such as GPRS or 3G (when compared to cheaper and faster Wi-Fi connection).

However, serialization—particularly for the compressed JSON format and XML format—consumes processor resources. You must balance the communication cost and the processor load factors when you choose a protocol or data format.

Note: The Microsoft OData Client Library (beta) for Windows Phone 7 does not support JSON serialization. You must use the Atom Pub format with this proxy component.

In addition to simply retrieving and uploading data, mobile devices often have a requirement to perform synchronization between data stored on the device and data stored on the server.

Synchronization must take into account occasional connectivity with the network, transmission errors, conflicts between the two data stores due to concurrent updates, and the correct application of keys and relationships between relational data rows on the database server. Synchronization is also often required between types of data that are not relational in nature. This may include log files, media files, or other types of information.

However, before you decide to implement synchronization, consider whether the additional effort it requires can be avoided by applying a simpler pattern. In particular, bi-directional synchronization can be difficult to implement. You may decide to use the Ledger design pattern where, when a conflict occurs, the server or the client version overrides conflict, the content is duplicated, or the user specifies values to resolve the conflict. Alternatively, you may decide
to implement synchronization tokens to simplify your design. For information about patterns for moving and synchronizing data, see “Data Patterns” on MSDN (http://msdn.microsoft.com/en-us/library/ff648502.aspx).

Alternatively, consider using a framework that implements synchronization if a suitable one is available. An example is the Microsoft Sync Framework, which is described in the following section.

 

 

Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place at the...

What are 7 things poor people do that the rich don’t?

1. poor people watch TV in which people read books how many hours you spend in front of the TV and when was the...

Top 18 best small business ideas for beginners starting

A small business can be frightening and requires plenty of careful planning there are many small business ideas which can be beneficial as well...

Summer that makes you happy

We saw were already here I've been thinking about some of the things. I used to do with my husband even though he had...

4 Point to helpful tips specifically for caregivers

What you need to take a vacation. I know it sounds impossible creative and try to make it work for you almost everyone needs...

More Articles Like This