The black meaning of the interface

In the application architecture architecture book I am reading, I found the following statement:

"Reduce round trips and improve communication performance, design short interfaces."

Can someone explain to me what short interaction means?

+3
source share
2 answers

This mainly refers to the amount of data transferred per call. For example, if you want to get a dataset from a server, instead of a query

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

you will create a batch method like

GetRecords(1,4);

The idea is that the first design includes four batches of overhead data, but the second only one.

+2
source

- , , , , .

.

+1

Source: https://habr.com/ru/post/1722099/


All Articles