Azure Cosmos DB SDKs

Azure Cosmos DB offers a variety of Software Development Kits (SDKs) to help you interact with your data seamlessly across different programming languages and platforms. This page provides links to the official SDK documentation, code samples, and guidance on choosing the right SDK for your application.

Supported SDKs

.NET SDK

The .NET SDK provides comprehensive support for building applications with Azure Cosmos DB using C#. It offers high-level abstractions and efficient data management capabilities.

Key Features:

  • LINQ support
  • Change Feed processing
  • Cross-partition queries
  • Batch operations

View .NET SDK Documentation

GitHub Repository

Java SDK

The Java SDK enables developers to build applications using Azure Cosmos DB with the Java programming language. It is designed for high performance and scalability.

Key Features:

  • Fluent API design
  • Asynchronous operations
  • Connection pooling
  • Retry policies

View Java SDK Documentation

GitHub Repository

Node.js SDK

The Node.js SDK allows developers to integrate Azure Cosmos DB into their JavaScript applications. It provides an intuitive API for managing documents and data.

Key Features:

  • Promise-based API
  • Support for CRUD operations
  • Bulk import and export capabilities
  • Real-time data sync via Change Feed

View Node.js SDK Documentation

GitHub Repository

Python SDK

The Python SDK provides a robust way to interact with Azure Cosmos DB from Python applications. It simplifies data manipulation and querying.

Key Features:

  • Object-document mapping
  • Iterators for large result sets
  • Integration with popular Python frameworks

View Python SDK Documentation

GitHub Repository

Spring Data Cosmos DB

Spring Data Cosmos DB simplifies the development of Spring-based applications that use Azure Cosmos DB. It integrates seamlessly with the Spring ecosystem.

Key Features:

  • Repository pattern support
  • Declarative transaction management
  • Integration with Spring Boot

View Spring Data Cosmos DB Documentation

Getting Started with SDKs

To start using an SDK, you typically need to:

  1. Install the SDK package using your language's package manager (e.g., NuGet for .NET, Maven for Java, npm for Node.js).
  2. Obtain your Cosmos DB endpoint and primary key from the Azure portal.
  3. Instantiate a Cosmos DB client using your credentials.
  4. Perform CRUD operations on your containers and documents.
Tip: Always use the latest stable version of the SDK for the best performance, security, and feature set. Check the official documentation for release notes and migration guides.
Note: For specific API references and detailed usage examples for each SDK, please refer to the respective documentation links provided above.

Community Contributions

We welcome community contributions to our SDKs! You can find the source code on GitHub and contribute by reporting issues, submitting pull requests, or suggesting new features.

Explore SDK Code Samples