Skip to content

Commit 19ee1b2

Browse files
Merge pull request #4879 from MicrosoftDocs/main
Auto Publish – main to live - 2026-04-21 17:07 UTC
2 parents 1af5828 + 51a098f commit 19ee1b2

35 files changed

Lines changed: 392 additions & 143 deletions

articles/cosmos-db/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@
315315
href: throughput-serverless.md?context=/azure/cosmos-db/context/context
316316
- name: Best practices for scaling provisioned throughput
317317
href: scaling-provisioned-throughput-best-practices.md?context=/azure/cosmos-db/context/context
318+
- name: Understanding request unit consumption
319+
href: understand-request-unit-consumption.md?context=/azure/cosmos-db/context/context
318320
- name: Burst capacity
319321
items:
320322
- name: Burst capacity overview

articles/cosmos-db/best-practices-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This guide includes best practices for solutions built using the latest version
3232

3333
- The request charge of a specified operation correlates directly to the size of the document. We recommend reducing the size of your documents as operations on large documents cost more than operations on smaller documents.
3434
- Some characters are restricted and can't be used in some identifiers: '/', '\\', '?', '#'. The general recommendation is to not use any special characters in identifiers like database name, collection name, item ID, or partition key to avoid any unexpected behavior.
35-
- The Azure Cosmos DB indexing policy also allows you to specify which document paths to include or exclude from indexing by using indexing paths `IndexingPolicy#getIncludedPaths()` and `IndexingPolicy#getExcludedPaths()`. Ensure that you exclude unused paths from indexing for faster writes. For more information, see [creating indexes using the SDK sample](performance-tips-java-sdk-v4.md#indexing-policy).
35+
- The Azure Cosmos DB indexing policy also allows you to specify which document paths to include or exclude from indexing by using indexing paths `includedPaths` and `excludedPaths`. Ensure that you exclude unused paths from indexing for faster writes. For more information, see [creating indexes using the SDK sample](how-to-manage-indexing-policy.md#use-the-nodejs-sdk).
3636

3737
## Host characteristics
3838

articles/cosmos-db/cassandra/support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Azure Cosmos DB supports Azure role-based access control (Azure RBAC) for provis
350350

351351
## Keyspace and Table options
352352

353-
The options for region name, class, replication_factor, and datacenter in the `CREATE KEYSPACE` command are ignored currently. The system uses the underlying Azure Cosmos DB's [global distribution](../global-distribution.md) replication method to add the regions. If you need the cross-region presence of data, you can enable it at the account level with PowerShell, CLI, or the Azure portal. For more information, see [Add regions to your database account](../how-to-manage-database-account.yml#add-remove-regions-from-your-database-account).
353+
The options for region name, class, replication_factor, and datacenter in the `CREATE KEYSPACE` command are ignored currently. The system uses the underlying Azure Cosmos DB's [global distribution](../global-distribution.md) replication method to add the regions. If you need the cross-region presence of data, you can enable it at the account level with PowerShell, CLI, or the Azure portal. For more information, see [Add regions to your database account](../how-to-manage-database-account.yml#add-or-remove-regions-from-your-database-account).
354354

355355
Durable_writes can't be disabled because Azure Cosmos DB ensures every write is durable. In every region, Azure Cosmos DB replicates the data across the replica set that is made up of four replicas and this replica set [configuration](../global-distribution.md) can't be modified.
356356

articles/cosmos-db/change-feed-processor.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ The main benefit of using the change feed processor is its fault-tolerant design
2222

2323
## Supported SDKs
2424

25-
| .NET V3 | Java | Node.JS | Python |
25+
| .NET V3 | Java | Node.js | Python |
2626
| --------- | --------- | --------- | --------- |
2727
|||||
2828

29+
For Python and Node.js, use the [change feed pull model](change-feed-pull-model.md), which provides direct access to the change feed with manual checkpoint management, because the change feed processor library is only available for .NET and Java.
30+
2931
## Components of the change feed processor
3032

3133
The change feed processor has four main components:

articles/cosmos-db/conceptual-resilient-sdk-applications.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Gateway mode is always used to fetch metadata such as the account, container, an
2828

2929
In summary, for SDKs in Gateway mode, you can expect HTTP traffic, while for SDKs in Direct mode, you can expect a combination of HTTP and TCP traffic under different circumstances, such as initialization, fetching metadata, or routing information.
3030

31+
> [!NOTE]
32+
> Direct mode is available only in the .NET and Java SDKs. All other Azure Cosmos DB SDKs use Gateway mode. The error status codes and retry guidance in this article apply across all SDKs. For more information, see [connectivity modes](sdk-connection-modes.md).
33+
3134
## Client instances and connections
3235

3336
Regardless of the connectivity mode, it's critical to maintain a singleton instance of the SDK client per account per application. Connections, both HTTP and TCP, are scoped to the client instance. Most compute environments have limitations in terms of the number of connections that can be open at the same time. When these limits are reached, connectivity is affected.

articles/cosmos-db/data-residency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In Azure Cosmos DB, you can configure your data and backups to remain in a singl
2020

2121
## Residency requirements for data
2222

23-
In Azure Cosmos DB, you must explicitly configure the cross-region data replication. Learn how to configure geo-replication using [Azure portal](how-to-manage-database-account.yml#add-remove-regions-from-your-database-account), [Azure CLI](scripts/cli/common/regions.md). To meet data residency requirements, you can create an Azure Policy definition that allows certain regions to prevent data replication to unwanted regions.
23+
In Azure Cosmos DB, you must explicitly configure the cross-region data replication. Learn how to configure geo-replication using [Azure portal](how-to-manage-database-account.yml#add-or-remove-regions-from-your-database-account), [Azure CLI](scripts/cli/common/regions.md). To meet data residency requirements, you can create an Azure Policy definition that allows certain regions to prevent data replication to unwanted regions.
2424

2525
## Residency requirements for backups
2626

articles/cosmos-db/distribute-data-globally.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ With Azure Cosmos DB, you can add or remove the regions associated with your acc
6565
* [Global distribution - under the hood](global-distribution.md)
6666
* [How to configure multi-region writes in your applications](how-to-multi-master.md)
6767
* [Configure multiple write-regions](how-to-manage-database-account.yml#configure-multiple-write-regions)
68-
* [Add or remove regions from your Azure Cosmos DB account](how-to-manage-database-account.yml#add-remove-regions-from-your-database-account)
68+
* [Add or remove regions from your Azure Cosmos DB account](how-to-manage-database-account.yml#add-or-remove-regions-from-your-database-account)
6969
* [Create a custom conflict resolution policy for API for NoSQL accounts](how-to-manage-conflicts.md#create-a-custom-conflict-resolution-policy)
7070
* [Programmable consistency models in Azure Cosmos DB](consistency-levels.md)

0 commit comments

Comments
 (0)