Xamarin with Web Services - Slowness and Timeout

Asked

Viewed 252 times

1

I developed an application with Xamarin using web services and is worrying me the fact that the communication by 3G is not working legal, 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.

Will the way is to change the way to traffic the data, sending via simple JSON, I think the problem may be that Web services traffic a lot of information.

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

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

If anyone has ever been in this situation and can help me, I would be grateful.

2 answers

3

Everything indicates that you are moving a lot of data in the same request.

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

0

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


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.