Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Direct TCP: Implement endpoint as load balanced channel pool #112

Closed David-Noble-at-work closed 5 years ago

David-Noble-at-work commented 5 years ago

The RntbdServiceEndpoint class encapsulates a Direct TCP service endpoint address with service requests load balanced across of set of channels. This channel set is encapsulated by RntbdClientChannelPool which derives from Netty's FixedChannelPool class. The size of the fixed channel pool and the maximum number of requests per channel is determined by these setting values:

The default values will be tweaked based on performance, reliability, and scale test results. The default values might vary by platform (Linux, macOS, and Windows).