开发者

What's wring with sending large json HTTP responses?

开发者 https://www.devze.com 2023-04-06 02:08 出处:网络
I\'m requesting a webservice with an开发者_开发技巧 HTTP GET that sends back a large response in json format.

I'm requesting a webservice with an开发者_开发技巧 HTTP GET that sends back a large response in json format. This response can vary from 100MB to few hundreds MB ...

What's in your opinions arguments I have to justify that this is not a good option to send back responses that way ? Any W3C recommendations or so ?

  • Blocking process
  • Timeouts
  • Unknown response size ...

Thanks for your thoughts


It would make more sense to engineer the GET to return a list of URIs, with the json data segmented for the client to request in a non blocking fashion.

0

精彩评论

暂无评论...
验证码 换一张
取 消