Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 2.45 KB

File metadata and controls

63 lines (35 loc) · 2.45 KB

Analysis Objective

Provide commentary on the latency improvements in v4.3 for this test run.

Test Setup

  • Cosmos account configured with session consistency and in a single region - West US
  • Client running on a local desktop in San Diego, CA
  • Max provisioned RUs = 400
  • MaxRetryWaitTimeInSeconds = 10, MaxRetryAttempts = 100 and MaxPoolSize = 10
  • Test executed for the following payload sizes: 1000, 5000, 10000, 50000, 100000, 200000 and 400000 bytes
  • Each replace and upsert test adds an additional prefix called 'replaced' and 'upserted'
  • RUs are collected using Histograms and that can only be an int or a long. Hence, I am using the Math.round() function to round off the RUs
  • Test run executed with operation = SQL_ALL
  • Documents created with a single partition key index.

Observations

  • The following observations are based on the session consistency level.
  • Data is available for strong, bounded staleness and eventual consistency levels if needed.

CRUD operations

  • End to end latency numbers have improved substantially between v4.1 vs v4.3. This is applicable when upgrading from v4.2 as well.

  • Intermittent spikes in latency times have been eliminated

  • Sync create operations

Session sync write latency

  • Async create operations

Session async write latency

  • Sync upsert operations

Session sync upsert latency

  • Async upsert operations

Session async upsert latency

Read operations

  • Sync point read operation

Session sync point read

  • Async point read operation

Session async point read

  • Sync partition key based lookup

Session sync partition key based lookup

  • Async partition key based lookup

Session async partition key based lookup