This changes the DistributedQueryPipelineStage which acts as a client pipeline stage for a Distributed Query gateway. Customers can utilize this pipeline by setting an environment variable called AZURE_COSMOS_DISTRIBUTED_QUERY_GATEWAY_ENABLED to True. This pipeline stage uses an ICosmosDistributedQueryClient to talk to the distributed query gateway. For its part, this client just uses the DocumentClient to craft the requests using gateway mode. Integration tests are added in DistributedQueryClientTests. Since the distributed query gateway is not currently bundled as a part of the emulator, the only queries that can be integration tested are passthrough queries that are currently supported by the routing gateway.
Type of change
[x] New feature (non-breaking change which adds functionality)
Description
This changes the
DistributedQueryPipelineStage
which acts as a client pipeline stage for a Distributed Query gateway. Customers can utilize this pipeline by setting an environment variable calledAZURE_COSMOS_DISTRIBUTED_QUERY_GATEWAY_ENABLED
toTrue
. This pipeline stage uses anICosmosDistributedQueryClient
to talk to the distributed query gateway. For its part, this client just uses theDocumentClient
to craft the requests using gateway mode. Integration tests are added inDistributedQueryClientTests
. Since the distributed query gateway is not currently bundled as a part of the emulator, the only queries that can be integration tested are passthrough queries that are currently supported by the routing gateway.Type of change