Share via

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

Liav 121 Reputation points
2021-06-27T10:48:11.63+00:00

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 Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

0 comments No comments

Answer accepted by question author

KalyanChanumolu-MSFT 8,361 Reputation points
2021-06-28T06:19:52.393+00:00

@Liav 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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.