Ramasamy NP
Ramasamy NP

Reputation: 131

How to speed up cloud service running in windows azure?

I have developed web api and deployed in windows azure. That web api is consumed in android application. That app is slow when fetching data from WEB API.

How to speed up app to fetch data from WEB API?

Thanks.

Upvotes: 2

Views: 334

Answers (1)

Eoin Campbell
Eoin Campbell

Reputation: 44278

You first need to figure out why it's slow ?

Is the api method execution slow? Is it calling a database query and the DB is slow? Is it a bandwidth problem between the Android device and their network?

Could be a million and one things without you providing more information but here are a few things you could try.

  • Profile your database queries and see that they're executing and returning to the service in a timely fashion
  • Call your WebAPI methods from Chrome with the Dev Tools (F12) turned on. Checkout the network tab, and see how long the round trip time is for the request/response compared with the android call
  • Find out how many simultaneous calls are hitting your application, it could be that you just need to scale out with more web role processes.

Upvotes: 1

Related Questions