矮胖的界面含义 [英] Chunky interface meaning

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

问题描述

在我正在阅读的《应用程序架构设计》一书中,我发现了以下陈述:

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天全站免登陆