Github user jorgebay commented on the issue:

    https://github.com/apache/tinkerpop/pull/903
  
    Also, I'm not sure I understand how this will come into place with 
TINKERPOP-1775.
    
    Currently a connection is being used to one send and receive one 
request/response pair at a time. We should allow sending multiple requests 
without waiting for a response and support unordered responses (based on the 
request id). You can look at the gremlin-javascript connection for example:
    - When the request is sent, a [callback handler is 
registered](https://github.com/apache/tinkerpop/blob/3.3.3/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js#L106-L109)
    - When the response is obtained, [the callback is obtained by request id 
and 
invoked](https://github.com/apache/tinkerpop/blob/3.3.3/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js#L146).
    
    We can use the pool to balance the requests between connections. If we want 
to throttle requests, we should introduce a new setting like "max inflight per 
connection".


---

Reply via email to