矮胖接口的意义 [英] Chunky interface meaning

查看:98
本文介绍了矮胖接口的意义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这本书的应用架构设计,我'读,我发现下面的语句:

In the book of application architecture design, which I'am reading, I've found the following statement:

,以减少往返次数,提高
  通信性能,设计
  矮胖的接口。

"To reduce round trips and improve communication performance, design chunky interfaces."

谁能给我解释一下什么是矮胖界面呢?

Can anybody explain me what does "chunky interface" mean?

推荐答案

基本上,它是指在一个呼叫传送的数据量。例如,如果你想从服务器获取的一组数据,而不是问

Basically, it refers to the amount of data transferred in one call. For example, if you wanted to get a set of data from a server, instead of asking

GetRecord(1);
GetRecord(2);
GetRecord(3);
GetRecord(4);

你设计一个间歇法,像

you'd design a batch method, like

GetRecords(1,4);

的想法是,在第一个设计即被四批的开销,但第二仅一个

The idea is that the first design incurs four lots of overhead, but the second only one.

这篇关于矮胖接口的意义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆