SKILL

azure-cosmos-java

Azure Cosmos DB SDK for Java. NoSQL database operations with global distribution, multi-model support, and reactive patterns. Triggers: "CosmosClient java", "CosmosAsyncClient", "cosmos database java", "cosmosdb java", "document database java".

Target: Cloud, operations & security. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Azure Cosmos DB SDK for Java
  • Installation
  • Environment Variables
  • Authentication
  • Key-based Authentication
  • Async Client
  • With Customizations
  • Client Hierarchy

Client library for Azure Cosmos DB NoSQL API with global distribution and reactive patterns. Or use Azure SDK BOM: | Class | Purpose | |-------|---------| | CosmosClient / CosmosAsyncClient | Account-level operations | | CosmosDatabase / CosmosAsyncDatabase | Database operations | | CosmosContainer / CosmosAsyncContainer | Container/item operations | Choose a partition key with: High cardinality (many distinct values) Even distribution of data and requests Frequently used in queries | Level | Guarantee | |-------|-----------| | Strong | Linearizability | | Bounded Staleness | Consistent prefix with bounded lag | | Session | Consistent prefix within session | | Consistent Prefix | Reads never see out-of-order writes | | Eventual | No ordering guarantee | All operations consume RUs. Check response headers: 1. Reuse CosmosClient — Create once, reuse throughout application 2. Use async client for high-throughput scenarios 3. Choose partition key carefully — Affects performance and scalability 4. Enable content response on write for immediate access to created items 5. Configure preferred regions for geo-distributed applications 6. Handle 429 errors with retry policies (built-in by defa

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
microsoft/skills
Source file
.github/plugins/azure-sdk-java/skills/azure-cosmos-java/SKILL.md
Fixed revision
9287b443662d2433c85621c7325ee72a0ce499b5
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Microsoft Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T19:02:06.191Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.