Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chunky interface meaning

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?

like image 346
Peter Starbek Avatar asked Sep 25 '26 02:09

Peter Starbek


1 Answers

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.

like image 70
Steve Cooper Avatar answered Sep 26 '26 14:09

Steve Cooper