How much data should web service return?

5 views
Skip to first unread message

Nhut Thai Le

unread,
Oct 28, 2019, 11:37:54 AM10/28/19
to Angular and AngularJS discussion
Hello,

Does anyone has a good rule of thumb how much data (in term of total size and number of elements) should the web service return in order to be processed efficiently in typescript? The application i am building mainly used from a mobile device so memory and computing power are limited.

Thai

Sander Elias

unread,
Oct 29, 2019, 10:26:13 AM10/29/19
to Angular and AngularJS discussion
Hi Nhut,

There is only one answer. It depends.
On the size of the data, On what kind of clients, on expected network speed, and on tens of other things.
Usually, I look at the complete size of the returned data. if that's <100Kb I just pull everything all the time. However, this is not a hard rule. 
there are times that I pull down 1.5Gb of data in 1 go. Also, there are times I limit it to <1.5Kb (1 packet on the network)
Most of it related to the change rate of the data, and how often I need it in my app. 

Regards
Sander

Reply all
Reply to author
Forward
0 new messages