question

Liav-8704 avatar image
0 Votes"
Liav-8704 asked KalyanChanumolu-MSFT answered

Cosmos DB java - Direct mode https protocol is not currently supported with PrivateLink. Please use Direct mode TCP protocol

Hi,

We are using Azure Cosmos DB BulkExecutor library for Java to insert documents in bulks to cosmos DB.
we use direct mode and all works ok.
we wanted to add some security constraints to our application so we added a Vnet and blocked the option to connect to cosmos from all networks to only
from the Vnet.
we added a private endpoint to the cosmos and got the error: "Direct mode https protocol is not currently supported with PrivateLink. Please use Direct mode TCP protocol".
The BulkExecutor library does not have the option of Direct mode TCP, so we tried Gateway mode and it worked.

The recommended way to work with Bulk insert for better performance is to work in direct mode,

Is there a workaround to solve this issue?
Will BulkExecutor library support Direct mode TCP in some point?

Thanks,
Liav

azure-virtual-networkazure-cosmos-db
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

KalyanChanumolu-MSFT avatar image
0 Votes"
KalyanChanumolu-MSFT answered

@Liav-8704 Thank you for reaching out.

The bulk executor library for Java is available for Azure Cosmos DB Java sync SDK v2 and it is the currently the recommended solution for Java bulk support.
In future support for bulk operations will be built into the SDK's itself instead of using a separate library for bulk operations.

Unfortunately, there is no support for Direct - TCP option currently.


If an answer is helpful, please "Accept answer" or "Up-Vote" which might help other community members reading this thread.
And if you have further questions or issues, please let us know.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.