Skip to content

Conversation

@andrewmathew1
Copy link
Contributor

Description

Added samples for both the sync and async client showing users how to create a database and container without autoscale throughput settings. Also demonstrated how to read the current autoscale throughput settings for a database and container. Lastly, these samples show a user how to update their max_throughput autoscale settings for a container.

@Copilot Copilot AI review requested due to automatic review settings October 24, 2025 15:32
@andrewmathew1 andrewmathew1 requested a review from a team as a code owner October 24, 2025 15:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive sample code demonstrating autoscale throughput management for Azure Cosmos DB. The samples show users how to create databases and containers with autoscale settings, read current throughput configurations, and update maximum throughput values.

Key Changes:

  • Added synchronous client sample (autoscale_throughput_management.py) demonstrating core autoscale operations
  • Added asynchronous client sample (autoscale_throughput_management_async.py) with additional concurrent operations demonstration
  • Both samples include create, read, and update operations for autoscale throughput settings

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
sdk/cosmos/azure-cosmos/samples/autoscale_throughput_management.py New synchronous sample demonstrating autoscale throughput operations including database/container creation, reading settings, and updating maximum throughput
sdk/cosmos/azure-cosmos/samples/autoscale_throughput_management_async.py New asynchronous sample with similar operations plus concurrent throughput management demonstration

Copy link
Member

@simorenoh simorenoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The concurrency sample is probably not anything that we need to have, but won't block on that. Thanks Andrew!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants