以下哪种数据格式需要的带宽最少?

发布于 2024-08-21 16:24:07 字数 39 浏览 8 评论 0原文

xml、json、rss、atom 格式中哪些会产生更少的流量?

What from xml, json, rss, atom format will generate less traffic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

花开柳相依 2024-08-28 16:24:07

如果您的目标是最大限度地减少带宽,那么 JSON 将使您从列出的选项中获得最大的收益。所有其他形式都基于 XML,其管理成本明显更高。

If your goal is to minimize bandwidth, JSON will get you the most bang for your buck out of the choices listed. All the other forms are based around XML, which has significantly higher overhead costs.

无远思近则忧 2024-08-28 16:24:07

如果你在服务器端 gzip HTTP 响应,那么你不会感觉到 xml、json、rss、atom 或 event JSON 之间的区别(尽管 json 会小一点),所以你可以选择更方便的给你。
如果您不会 gzip http 响应,那么 JSON 是正确的选择。

If you will gzip HTTP response on a server-side, then you won't feel the difference between xml, json, rss, atom or event JSON (though json will be a tiny bit smaller), so you can choose what is more convinient to you.
If you will not gzip http response, then JSON is the right choise.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文