пакетирование в gRPC

В документации по gRPC, в примечании о производительности написано:

"Generally, each write operation (Write(), WritesDone()) implies a syscall. gRPC will try to batch together separate write operations from different threads, but currently cannot automatically infer batching in a single stream.

If message k+1 in a stream does not rely on responses from message k, it's possible to enable write batching by passing a WriteOptions argument to Write with the buffer_hint set:"

Можете объяснить, что означает - нет пакетирования в одном потоке? есть же возможность включить пакетную запись?

Right now, the best performance trade-off is having numcpu's threads and one completion queue per thread.

Можно подробнее - чем обусловлено такое ограничение? Можно ли утверждать, что gRPC для С++ не подходит для highload?


Ответы (0 шт):