Overview of Azure Cosmos DB SDKs

Azure Cosmos DB is a globally distributed, multi-model database service. To interact with your Cosmos DB data, you can use the officially supported Software Development Kits (SDKs). These SDKs provide robust, idiomatic client libraries for various programming languages, enabling you to perform CRUD operations, query data, manage resources, and leverage advanced features like change feed and transactions.

Choosing the right SDK depends on your application's technology stack. Each SDK is designed to offer the best possible developer experience for its respective language.

Key Features of Cosmos DB SDKs:

  • High Performance: Optimized for low latency and high throughput.
  • Resilience: Built-in retry policies and fault tolerance for distributed environments.
  • Productivity: Intuitive APIs and modern language constructs.
  • Advanced Features: Support for transactions, change feed, stored procedures, triggers, and UDFs.
  • Cross-Platform: Available for popular platforms and runtimes.

Available SDKs

Explore the SDKs available for your preferred programming language. Click on a card to view detailed documentation, examples, and download links.

🐘

.NET SDK

The official .NET SDK for Azure Cosmos DB, supporting .NET Core, .NET Framework, and Xamarin.

C#, F#, VB.NET
View Docs & Get Started
🚀

Java SDK

A high-performance Java SDK for interacting with Azure Cosmos DB. Supports Maven and Gradle.

Java
View Docs & Get Started
🐍

Python SDK

The official Python SDK for Azure Cosmos DB, providing a simple and efficient way to access your data.

Python
View Docs & Get Started
🍎

Node.js SDK

Leverage the power of JavaScript for your backend with the Azure Cosmos DB Node.js SDK.

JavaScript
View Docs & Get Started
🐹

Go SDK

Build cloud-native applications with the Azure Cosmos DB Go SDK.

Go
View Docs & Get Started
💡

Spring Data Cosmos DB

Integrate Azure Cosmos DB seamlessly with your Spring Boot applications.

Java (Spring)
View Docs & Get Started

Choosing the Right SDK

When selecting an SDK, consider factors such as your team's familiarity with the language, the performance requirements of your application, and the specific features you need to utilize. All official SDKs are actively maintained and undergo rigorous testing.

SDK Versions and Support

Refer to the Azure Cosmos DB SDK release notes for the latest version information, known issues, and support lifecycles for each SDK. Keeping your SDK updated ensures you benefit from the latest features and security patches.

Community Contributions

While official SDKs are recommended, you might find community-supported libraries for other languages or frameworks. However, Microsoft does not provide support for unofficial libraries.