Thanks to visit codestin.com
Credit goes to officialskills.sh

Back to skills

azure-cosmos-java

officialdata

Azure Cosmos DB SDK for Java provides a client library for interacting with Cosmos DB's NoSQL API.

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill azure-cosmos-java
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-java/skills/azure-cosmos-java
View on GitHub

What This Skill Does

Azure Cosmos DB SDK for Java provides a client library for interacting with Cosmos DB's NoSQL API. It supports both synchronous and asynchronous (reactive) programming models via `CosmosClient` and `CosmosAsyncClient`. Use it to manage databases, containers, and documents with global distribution and configurable consistency levels.

Using the SDK directly gives you typed responses, built-in retry policies, and reactive support that raw HTTP calls to the Cosmos REST API do not provide out of the box.

When to use it

  • Querying documents across globally distributed containers with partition-aware requests
  • Switching between strong and eventual consistency per operation based on read requirements
  • Handling 429 rate-limit errors with built-in retry logic in high-throughput Java services
  • Building reactive data pipelines using `CosmosAsyncClient` with Project Reactor
  • Tracking Request Unit consumption per operation to optimize Cosmos DB provisioned throughput