envoyproxy/envoy

Support one-to-one mapping of upstream/downstream connections

Open

#12.370 aperta il 29 lug 2020

Vedi su GitHub
 (17 commenti) (0 reazioni) (0 assegnatari)C++ (5373 fork)batch import
area/httpdesign proposalhelp wanted

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

I’d like to have the ability to have exactly one upstream connection for every downstream connection that we decide to route. That is, streams on the same downstream connection should share the same upstream connection, but no other streams should use that upstream connection.

The rationale for this is twofold:

  1. I want to ensure that only the traffic for a single downstream client is carried over a given upstream connection. I do not want mixing of client traffic over an upstream connection. This would be solved by creating a new connection for every stream if it weren't for the second rationale
  2. I want to avoid the overhead of the TCP handshake that would be needed in the connection-per-stream case.

I have time to work on this feature if there is a consensus that it makes sense.

Guida contributor