[tarantool-patches] Re: [PATCH 6/8] netbox: introduce fiber-async API

Alexander Turenko alexander.turenko at tarantool.org
Mon Apr 23 15:31:08 MSK 2018

Hi Vlad!

Minor wording comments are below (Vlad asks to track it here).

WBR, Alexander Turenko.

On Mon, Apr 16, 2018 at 09:39:16PM +0300, Vladislav Shpilevoy wrote:
> Now any netbox call blocks a caller-fiber until a result is read
> from a socket, or time is out. To use it asynchronously it is
> necessary to create a fiber per request. Sometimes it is
> unwanted - for example if RPS is very high (for example, about
> 100k), and latency is about 1 second. Or when it is neccessary
> to send multiple requests in paralles and then collect responses
> (map-reduce).

Paralles -> parallel.

> +    function request_index:wait_result(timeout)
> ...
> +        if not self:is_ready() then
> +            -- When a response is ready before timeout, the
> +            -- waiting client is waked up spuriously.

Do you mean prematurely?

More information about the Tarantool-patches mailing list