iT邦幫忙

0

有關API loading performance 的問題

大家好, 想請教大家為何當我在local 的時候, api call 只需236ms,
但每次在live website 的時候, 就需要938ms-1.2s. 都是同樣的東西,
還有就是理想的api loading 時間是多少?

fillano iT邦超人 1 級 ‧ 2020-01-13 16:32:50 檢舉
環境?
diu7me iT邦新手 4 級 ‧ 2020-01-13 16:38:11 檢舉
cpanel
diu7me iT邦新手 4 級 ‧ 2020-01-13 16:38:33 檢舉
server location 是在singapore
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
小魚
iT邦大師 1 級 ‧ 2020-01-13 17:07:42

遠端要做網路傳輸,
當然會比較久,
至於理想的Loading時間,
你要問問老闆可以接受的時間...
不過原則是傳輸資料越少越好,
資料量大時間一定會久.

ni0 iT邦新手 5 級 ‧ 2020-01-13 17:33:34 檢舉

如果能切,切成多次會比較好(嗎?)

小魚 iT邦大師 1 級 ‧ 2020-01-13 19:20:55 檢舉

資料太多很多時候是用分頁, 看需求吧.

我要發表回答

立即登入回答