Xamarin with Web Services - Slow and Timeout

1

I've developed an application with Xamarin using web services and I'm worried that 3G communication is not working legally, has given a lot of timeout and this error "Error getting response stream (ReadDone1): ReceiveFailure".

What happens is that applications like Facebook and Instagran that use a significant amount of band work perfectly under the same conditions.

I have a server (cloud) at Amazon in SP and are quiet about processing and memory, which means that the problem is connection. Via wi-fi, it works perfectly.

In the app I send and receive data (texts) and images, but the problem has occurred with texts, which is lighter.

If someone has already experienced this and can help me, I would be grateful.

    
asked by anonymous 19.03.2014 / 15:02

2 answers

3

Everything indicates that you are traveling a lot of data on the same request.

If you can not decrease the amount of data, you have to increase the number of requests and distribute the data between them.

    
19.03.2014 / 15:50
0

Splitting the data would be one of the solutions. Json is also a good solution, but beware, remember this Json can sometimes be consuming more bandwidth than is apparently visible, eg:


{
  "data": "xpto",
  "hasMoreData": 1
}

In the above example it may seem like a banal case because the data you will use will "parse" and ready, but if you parse right the second object "hasMoreData" its description in "string" is consuming but bandwidth itself value of the object that is an integer "1";

    
25.10.2016 / 16:21